Professional Documents
Culture Documents
Case 2
Case 2
Q2. What will be the result of the following: select distinct city from s
Q3. What will be the result of the following: select distinct sno from s;
Q4.
course table
department table
Q6. What will be the result of the following: select * from s where sname like '%e%';
Q7. What will be the result of the following: select * from s order by city;
Q8. What will be the result of the following: select * from s order by city desc;
Q9. What will be the result of the following: select * from p where weight between 12 and 14;
Q10.
sale2011 table sale2012 table
What will be the result of the following: select product_name from sale2011
What will be the result of the following: select product_name from sale2012
What will be the result of the following:
select product_name from sale2011
union
select product_name from sale2012;
Q11. What will be the result of the following: select avg(unit_price) from sale2012;
Q12. What will be the result of the following: select min(unit_price) from sale2012;
Q13. What will be the result of the following: select max(unit_price) from sale2012;
Q14. What will be the result of the following: select sum(unit_price) from sale2012;
Q15. What will be the result of the following: select count(*) from s;
Q20. What will be the result of the following: select * from s where city in ('London', 'Athens');
Q21. What will be the result of the following: select * from s where city not in ('London');
Q22. What will be the result of the following:
select count(*) from
(
select * from s where city not in ('London')
);