Hi
Could somebody help me with my sql query. Namely my table look as follow
dateline postid postwiews
122233 1 22
112333 2 43
122222 3 12
.....
I have a more record there by it don't matter now. What is confusing me is dateline. How can I construct a sql query to return the max number of postviews and average postviews for a particular date?
I know how to count all postviews in a table, but i have no idea how to count max postviews for specific date range for example post id:1 have the same date and how to return the max for this date.
Could somebody provide me some example???
Thanks in advance
Could somebody help me with my sql query. Namely my table look as follow
dateline postid postwiews
122233 1 22
112333 2 43
122222 3 12
.....
I have a more record there by it don't matter now. What is confusing me is dateline. How can I construct a sql query to return the max number of postviews and average postviews for a particular date?
I know how to count all postviews in a table, but i have no idea how to count max postviews for specific date range for example post id:1 have the same date and how to return the max for this date.
Could somebody provide me some example???
Thanks in advance