Chapter 13
Chapter 13
(ii)
select * from orders, product, payment where orders.ordno =
payment.ordno and prodno# = prodno and ( qty * price ) < pment ;
update empl
set grade = 2
where sal between 1500 and 2200 ;
update empl
set grade = 3
where sal between 2200 and 3000 ;
update empl
set grade = 4
where sal = 3000 ;
10. alter table empl add column grade int(1) not null ;
11. insert into empl(empno , ename , job , mgr , hiredate ,sal
,comm , deptno ) values( 8935, “path wala ”,
“salesman”,8862 , “1993-06-25” ,1000 , 110.00, 10 )