CS1103/Labs/Lab4/Queries.txt

17 lines
467 B
Plaintext
Raw Normal View History

2022-10-07 00:48:09 -03:00
Question 1:
select CUS_FNAME as `First Name`, CUS_LNAME as `Last Name`, CUS_INITIAL as `Customer Initial`
from CUSTOMER
where CUS_AREACODE = '615' and CUS_BALANCE != '0';
Question 2:
select P_DESCRIPT as `Product Description` , P_PRICE as `Price`
from PRODUCT
where P_QOH < 15;
Question 3:
select P_CODE as `Product Code`, P_DESCRIPT as `Product Description`, (P_PRICE * (1 - P_DISCOUNT)) as `Discounted Price`
from PRODUCT
where P_PRICE > 100;