Mysql Lab Exam
Mysql Lab Exam
Mysql Lab Exam
-- is null and salary in the range 500000 to 650000 and gender is male.
where commission is null and
salary between (500000 and 650000) and
gender = 'male';
-- Q2- Write a query to Display manager who born after 17th June 1992.
select * from manager where DOB>'1992-06-17';
jacob denis
lameck goffrey
frank desdery
john justin
vicent victor
Jose
Will
Davi
Halt
Stev
Steven
-- Q7- Write a query to Find all customers which doesn't have any
product. (use sub-query)
select * from customer where customerid not in (select distinct customerid from
product);
select max(salary) from manager where salary < (select max(salary) from manager
where salary not in (select max(salary) from manager));
4100000
-- Q10- Display all the PCODE(Product Code) which have more Price than
all the Computer Product_Name.(use Joins)