Hi All,
I am wondering how to do that.....
Suppose we have data like this below
ID Category
-------------------------
1 Software Engg
2 Engg
62 Commerce
87 Ecommerce
45 physics
95 chemistry
6 biochemistry
7 math
5 Others
I want to achieve recordset like below (sorting category by Name and
including 'Others' at the end),
I want to do that by single query ;), any idea???
ID Category
------------------------
6 biochemistry
62 Commerce
95 chemistry
2 Engg
87 Ecommerce
7 math
45 physics
1 Software Engg
5 Others
Looking forward,
Tariq
---------------------------------------------------------------------
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
- Re: Select and Sort? Tariq Murtaza
- Re: Select and Sort? Fred van Engen
- Re: Select and Sort? Tariq Murtaza
- Re: Select and Sort? Fred van Engen
- RE: Select and Sort? Adolfo Bello