sql - How is the Order By working in this query -


select * tt  order (select age            ttt            name='tandel'           ); 

result is,

john    2 praveen 2 kumar   2 rakesh  2 wasib   2 gurung  2 dayalan 5 deepak  2 tandel  5 raghu   5 giga    5 deepa   5 devaraj 2 

note: table tt , ttt both have same data.

quite simply, it's not working. order requires column or columns, if random data passed instead of column names, nothing.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -