posted 15 years ago
Hi...
I am reading about using 'order by' clause. I came across following question -
The results from an SQL query are shown here.
Which of the following SQL statements could not have produced this output?
A. select deptno,dname,loc from dept order by 2 asc, 1 asc, 3 desc;
B. select deptno,dname,loc from dept order by 3 asc;
C. select deptno,dname,loc from dept order by 2 asc;
D. select deptno,dname,loc from dept order by 2 asc, 3 asc, 1 desc;
I think correct ans is (B.). But book says it is (C.). What do you think?