-- L1-P53 selectDISTINCT maker from product piece whereEXISTS ( select*from pc PC where PC.speed >=3.0AND PC.model = piece.model ); -- 1-1
selectDISTINCT maker from product piece where piece.model IN ( select model from pc PC where PC.speed >=3.0 ); -- 1-2
select* from printer PR where PR.price >=ALL( select price from printer ); -- 2-1
select* from printer PR whereNOTEXISTS ( select price from printer PR2 where PR.price < PR2.price ); -- 2-2
select* from laptop LT where LT.speed <ANY( select speed from pc ); -- 3-1
select* from laptop LT whereEXISTS ( select speed from pc PC where PC.speed > LT.speed ); -- 3-2
select maker from product prod, printer PR where prod.model = PR.model and (PR.price <=ALL ( select price from printer PR2 where PR2.color =true )); -- 4-1
select maker from product prod, printer PR where prod.model = PR.model and PR.color =trueandNOTEXISTS ( select price from printer PR2 where PR.price > PR2.price and PR2.color =true ); -- 4-2
selectDISTINCT maker from product PR where250<=ALL( select hd from pc PC where PC.model =ANY( select model from product PR2 where PR2.maker = PR.maker ) ); -- 5-1
selectDISTINCT maker from product PR whereNOTEXISTS ( select hd from pc PC where PC.hd <250and PC.model =ANY( select model from product PR2 where PR2.maker = PR.maker ) ); -- 5-2