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
How can I convert a custom control that calls User32 and Shell32 to work on Mono?
How to determine coaxial cable
Crystal cross-tab page numbering
Best LAN Network Switch Design?
isa 2004 and iis7
Passing PChar parm to DLL
How to configure VRRP
C# asp.net - Set object visibility based on browser type
How do I combine 2 List<KeyValuePair<,>>'s into a DataTable using LINQ?
jQuery tooltip on form input image hover