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
Flash XML content
mySQL complicated unions and subqueries
make a new bridge in cisco catalyst 2950
Zebra LP 2844 label printer prints the first print job successfully, subsequent print jobs after skip labels and/or print partial data on labels until computer is rebooted.
breadcrumb trail in a dropdown box
IIS 6.0 asp.net 2.0 cpu performance issue
HP 1320 Pinter smudges
Download manager Flashget V3.3 disabled IE & Firefox browsers from browsing Internet
Reset display resolution windows 7
File permissions