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
Sharepoint Calculated Column Question:How to convert date to (YY) Month format from mm/dd/yy?
How do I pass multiple listbox selections in a query string?
Server 2008 R2 DC File Permissions
Vmware and HP msa2324sa dc + DL360 (2) configuration considerations
Exchange 2010 Server Specs
Probably an easy question, but how can I set the domain name for use with iis on my lan?
Image desktop settings
error SQL3126N when loading data from local file to remote DB2 instance
Microsoft Exchange 2010
user rights and administrative rights problems on domain