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
Multi Homed Windows 2008 Server
vb.net ListView prerender Event e.item.itemType
check_directory_files
No Link Light - Qlogic QLA4010C iSCSI HBA in VMware VI3 ESX server
Where can I find a service manual for a Gateway MD2414u Laptop?
MySQL Foreign Key Issue
Outlook: Errors have been detected in the file
How do I change the letter of a mapped drive?
How can you search e-mail within Outlook 2010 and not use the index?
Multiple repeat regions on 1 page with 1 recordset