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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -