Fast Service Boy: Customer - I D Customer - Na Me Item - Name Quantit y Price
Fast Service Boy: Customer - I D Customer - Na Me Item - Name Quantit y Price
Customer_i
d
Customer_na
me
Item_name
Quantit
y
Price
A23001
Tarun Sethi
soap
10 pcs
1500
A45005
Sahil gupta
detergent
5 kg
4000
B56777
Chandan Jena
rice
15 kg
350
F57478
Ritvik Menon
oil
10 l
1800
C65474
Swaroop sahoo
dal
2 kg
500
A40007
S. Behera
sugar
3 kg
250
S34009
S. Mishra
salt
10 kg
600
Delivery_
man
Charge
s
A23001
Bhaskar
50
A45005
Rahul
65
B56777
Vinod
110
F57478
Ranjan
85
C65474
Venket
64
A40007
Manoj
25
S34009
Jeevan
80
SQL Questions
1) Write a SQL command to display all the contents of the table
CUSTOMER.
Ans. SQL> SELECT * FROM CUSTOMER ;
3) Write a SQL command to Insert a new row into the Table CUSTO
Ans. SQL> INSERT INTO CUSTOMER
VALUES(B6504,Manoj Sahoo,Pakoda,5,120);
4) Write a Query that displays the average of price from the table
CUSTOMER.
Ans. SQL> SELECT AVG(Price) FROM CUSTOMER;