Jump to content

SQL Query Help


Recommended Posts

I need to generate a query that shows the total of 'click' activity for the previous year up-to date group by the 'desination_url'. Here is an example.

 

+---------------------+--------+---------+------+------------+------------+

| destination_url          | July    | June      | May  | April          | March        |

+---------------------+--------+---------+------+------------+------------+

| www.yahoo.com      | 15        | 15        | 12    | 9              | 12            |

| www.phpfreaks.com  | 23        | 33        | 10    | 7              | 10            |

+---------------------+--------+---------+------+------------+------------+

 

Kind of like a cross tab query of some sort. Please help. I'm stuck

Link to comment
https://forums.phpfreaks.com/topic/60825-sql-query-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.