Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
jesus4u
Posting Yak Master
204 Posts |
Posted - 2003-10-20 : 16:24:38
|
This is in Access..... Along with returning the number of records for each job title, I also need to just show the most recent Date that was added for each count.SELECT Count(RESUME.HearAbout) AS NumHearAbout, RESUME.HearAboutFROM RESUMEGROUP BY RESUME.HearAboutORDER BY Count(RESUME.HearAbout) DESC , RESUME.HearAbout; Output from above code:NumHearAbout HearAbout40 Website Other33 TV Other23 Friend14 OtherAlex PolajenkoMoved to Access Forum - robvolk |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-10-20 : 16:26:04
|
Access questions go in the Access forum. Does MAX work in Access?Tara |
 |
|
mohdowais
Sheikh of Yak Knowledge
1456 Posts |
Posted - 2003-10-21 : 02:20:26
|
quote: Does MAX work in Access?
You bet it does!!SELECT Count(RESUME.HearAbout) AS NumHearAbout, MAX(SomeDate) AS MostRecentlyHeard, RESUME.HearAboutFROM RESUMEGROUP BY RESUME.HearAboutORDER BY Count(RESUME.HearAbout) DESC, RESUME.HearAbout;Owais Make it idiot proof and someone will make a better idiot |
 |
|
|
|
|