select * from employee;
select name from dept;
select * from parts where qoh = 0;
orselect * from employee where salary between 9000 and 10000;
select * from employee where salary >= 9000 and salary <= 10000;
select number, name, startdate - birthdate as age from employee;
select * from employee where name like '%son, %';
orselect number, name from item where item.supplier = (select number from supplier where name = 'Playskool');
select item.number, item.name from item, supplier where item.supplier = supplier.number and supplier.name = 'Playskool';
select pname, color from parts where weight > (select weight from parts where pname = 'tape drive' and color = 'black');
select heavy.pname, heavy.color from parts heavy, parts tapedrive where heavy.weight > tapedrive.weight and tapedrive.pname = 'tape drive' and tapedrive.color = 'black';
select avg(weight) from parts where color = 'black';