Microsoft
Software
Hardware
Network
Question : Group by year AND date.
How could i get round this one guys.
I want to group these:
Admin training 14-06-2009
Admin training 02-06-2010
Admin training 02-06-2010
Admin training 07-06-2010
Admin training 25-08-2010
to just a month so
$query = "SELECT * FROM diary GROUP BY month(ev_dat) ";
Which gives
Admin training 14-06-2009
Admin training 25-08-2010
But as you see it completely misses all the dd-06-2010.
So how can i order by month and date??
1:
$query = "SELECT * FROM diary GROUP BY month(ev_dat) AND year(ev_date)";
Answer : Group by year AND date.
$query = "SELECT * FROM diary GROUP BY year(ev_date), month(ev_dat) ";
Random Solutions
Convert 16bpp bitmap to 32bpp or to JPEG on Windows Mobile 5.0 onwards
google docs shrink to fit
difference between AD integrated dns server and dns server
Can't install wifi printer MX870
Urgent: How to locate the current in use ID file in Lutus Notes 7
DNS Search List appending to all nebios / dns names
Crystal Report Security
Extract / Create thumbnails (1st page) for office documents using PHP on Windows or Linux/Mac server
Is it possible to encrypt an email message using PHP?
Migrate from cPanel to Plesk