Microsoft
Software
Hardware
Network
Question : Query help Max date and count
I need to grab the max(date) and count for the number of immunizations given to a patient.
I have a few thoughts on this was wondering what was must efficient way to do it. mahalo,
ID Date
1 1/1/10
1 3/4/10
1 5/10/10
should look like this
ID Date Total
1 5/10/10 3
Answer : Query help Max date and count
Hi,
How about?
select id, max(date), count(id) from yourtable group by id
/peter
Random Solutions
Windows 7, Domain: Admin cannot save to C drive from Outlook.
WS2008 Terminal Service on DC
VB.NET simple SendMail program error: System.Net.Mail.SmtpExcept
ion: Failure sending mail
jQuery - AJAX Call when a Checkbox is Checked
Outlook and HTML Tracking
Selecting nth item from a comma separated string
Looking for Video Recording Software for Samsung Cameras
Monitor CIsco 6500 Switch Fabric and Backplane Utilization
'System.Xml.Linq' doesn't contain any public member
How to get an USB speaker to work with Eee PC 900 Xandros Linux