SQL problem: Order results in descending order

Tags:
SQL
I'm trying to create an SQL statement that produces a listing that shows how many students are coming from each city. How can I order the results set based on the number of students from city in descending order?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen
    The sql syntax like that, select count (fieldname) as fieldname from tablename where clause.... See here for more help: http://www.w3schools.com/sql/sql_func_count.asp
    141,290 pointsBadges:
    report
  • TheRealRaven
    Why should we create such a statement? Homework?
    36,370 pointsBadges:
    report
  • ToddN2000
    Post your code and let us take a look. The problems will only get tougher as you go on.
    135,365 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: