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
Screen lock/unlock
Adding text in front of all footnotes
iPhone sounds on a web site ?
How do I modify textboxes/labels in an asp:repeater footertemplate through javascript (client side)
Getfile in ASP
Please wait while Windows configures Crystal Reports Release 2
HP Web JetAdmin uses lots of RAM
HTML Cellindex showing wrong index while display:none
ASA Static routing to Internal Router
undeliverable SBS 2003 Alert message, but not really