If i select city,name from table people , so can i use order by state ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If i select city,name from table people , so can i use order by state ?

16th Jul 2016, 3:10 AM
suratha kumar panda
suratha kumar panda - avatar
4 Answers
0
Definitely you can, given you have a column of state in your table people
16th Jul 2016, 3:24 AM
PUNEET SINGH
PUNEET SINGH - avatar
0
ok , so its not mandatory that order by should contain a same column that i have selected ?
16th Jul 2016, 3:26 AM
suratha kumar panda
suratha kumar panda - avatar
0
No that's not necessary
16th Jul 2016, 3:45 AM
PUNEET SINGH
PUNEET SINGH - avatar
0
thank you Puneet
16th Jul 2016, 3:47 AM
suratha kumar panda
suratha kumar panda - avatar