Select * from table order by age, name, surname
Select * from table order by age, name, surname where age>11
Cal
http://www.calevans.com
-----Original Message-----
From: Rino Nucara [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 5:18 AM
To: MySQL mailing list
Subject: Help for a quite simple quesry?
I have tree columns: name,surname,age.
how can I order this columns first by age, then by name , at the and by
surname. like that:
NAME SURNAME AGE
zanna bond 10
barbara astic 15
barbara bard 40
barbara zard 40
etc...
when I do a query asking all row that have age >11
can I get the row in the same order I have chois before (whit the command I
ask you before?) ?
I mean (in my example) in order like:
barbara astic 15
barbara bard 40
barbara zard 40
etc...
Thank you in advance, Mario.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php