Consider this two query:
1) Total Visits Per Hour:
Logparser.exe "SELECT QUANTIZE(TO_TIMESTAMP(date, time), 3600) AS Hour, COUNT(*) AS Total INTO tph.csv FROM ex*.log WHERE EXTRACT_EXTENSION(cs-uri-stem) IN ('asp'; 'php'; 'jsp'; 'html'; 'htm'; 'xml'; 'pl') GROUP BY Hour ORDER BY Hour" -o:CSV -headers

FF
2) Unique Visits Per Hour:
logparser.exe "SELECT QUANTIZE(TO_TIMESTAMP(date, time), 3600) AS Hour, c-ip, cs(User-Agent), cs-uri-stem FROM ex060821.log GROUP BY Hour, c-ip, cs(User-Agent), cs-uri-stem" -q -o:CSV | Logparser.exe -i:CSV "SELECT Hour, COUNT(c-ip, cs(User-Agent), cs-uri-stem) AS Unique INTO uph.csv FROM STDIN WHERE EXTRACT_EXTENSION(cs-uri-stem) IN ('asp'; 'php'; 'jsp'; 'htm'; 'html'; 'pl'; 'xml') GROUP BY Hour" -o:CSV -headers

FF
I will have the following result:
1)
2006-08-21 03:00:00,2
2006-08-21 06:00:00,13
2006-08-21 07:00:00,50
2006-08-21 08:00:00,60
...
2)
2006-08-21 03:00:00,2
2006-08-21 06:00:00,8
2006-08-21 07:00:00,6
2006-08-21 08:00:00,7
...
How can I Group fields to have something like this?:
Hour Total Unique
------------------- ----- ------
2006-08-21 03:00:00 2 2
2006-08-21 06:00:00 13 8
2006-08-21 07:00:00 50 6
2006-08-21 08:00:00 60 7