
December 4th, 2012, 06:51 AM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
Hi,
Quote: | Originally Posted by zubair_h Is there a way to write a query using specific date range that groups by the title? So for example if I would get distinct title with the sum of views for date range specified? |
Um, all you have to do is translate your question into an SQL query:
Code:
SELECT
`title`
, SUM(`views`)
FROM
`thegroup_pageviews`
WHERE
`date` BETWEEN '2012-12-02' AND '2012-12-03'
GROUP BY
`title`
|