Re: sort data so that most frequent name appears last
- From: Michael Gramelspacher <gramelsp@xxxxxxxx>
- Date: Sun, 13 May 2007 09:10:59 -0500
In article <0E8DDB66-1D4C-41A1-A6BA-AC5E3D930B4B@xxxxxxxxxxxxx>,
DRMK@xxxxxxxxxxxxxxxxxxxxxxxxx says...
please tell me how do i sort data in which the most frequent name appearsExample:
last in the data***
SELECT last_name, COUNT(last_name) AS [last_name count]
FROM Persons
GROUP BY last_name
ORDER BY COUNT(last_name);
.
- Prev by Date: Re: database design issue
- Next by Date: Re: Opening table - query running?
- Previous by thread: Unlink Table and Add New Field
- Next by thread: Re: table level validation
- Index(es):