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
Complex SQL 2005 Query Help Needed
Microsoft Exchange 2010
error SQL3126N when loading data from local file to remote DB2 instance
Insert Script from the command prompt
Probably an easy question, but how can I set the domain name for use with iis on my lan?
Setting Folder Permission in Windows XP - VB Script
Vmware and HP msa2324sa dc + DL360 (2) configuration considerations
Server 2008 R2 DC File Permissions
SQL Server 2008 setup failure
Sharepoint Calculated Column Question:How to convert date to (YY) Month format from mm/dd/yy?