Lab 3
Lab 3
-----------------------------------------------------------------------------------
--------------
ques = find the loan_nubers for loans made at the perryridge branch with loan
amount > $1200
ans = select loan_number from loan where branch =" per" and loan_amount > 1200
-----------------------------------------------------------------------------------
---------------
*logical test againt a list a list { in, not in, between, not between}
ex = page in (1,2,3)
page not in (1,2,3)
page between 6 and 10
page not between 10 and 20
*like operator:{%,_}
*logical operator{and, or, not}
product-master(product,des,profit,sell-price)
1 show the product detail with profit percentage lies in the range 10 to 20
ans = select *from pm where profit_p between 10 to 20
2 show the pd for sale price 1200,1300,1500
ans = select * from pm where sal p in (1200,1300,1500)
----------------------------------------------