17 lines
467 B
Plaintext
17 lines
467 B
Plaintext
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; |