Order by the 2nd column

>>what is the 2? in the order by statement mean?
>>thanks
>>
>>-----Original Message-----
>>From: Raśl Castro [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, June 03, 2004 6:20 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP] Best way to sort?
>>
>>
>>The best way is:
>>
>>SELECT person_name, count(*)
>>FROM table_name
>>GROUP BY person_name
>>ORDER BY 2 DESC


Reply via email to