Open tishyakhanna97 opened 2 years ago
Test query
select sid,sname from student order by sname
select sid,sname from student order by sname desc
select SId, Sname, GradYear from student order by GradYear asc, Sname desc
Incorrect query:
select dname,count(sid) from student, dept where majorid=did group by dname order by dname desc
Running hash join
dname countofsid
-----------------
compsci 7
drama 6
math 4
Lab 3
select SId, Sname, GradYear from student order by GradYear asc, Sname desc