0% found this document useful (0 votes)
5 views2 pages

Assignment 5

The document contains a client and product database with various attributes such as name, city, state, and pricing details. It includes a series of queries related to client and product data manipulation, such as calculating average prices, updating selling prices, and filtering clients based on specific criteria. The queries aim to analyze and modify the data for better insights and management.

Uploaded by

MONIKA SINGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Assignment 5

The document contains a client and product database with various attributes such as name, city, state, and pricing details. It includes a series of queries related to client and product data manipulation, such as calculating average prices, updating selling prices, and filtering clients based on specific criteria. The queries aim to analyze and modify the data for better insights and management.

Uploaded by

MONIKA SINGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

ASSIGNMENT-5

Client :-
Client Bal.du
no Name City State Pincode e
Maharast
0001 Ivan Bombay ra 400054 15000
Vandan Tamilnad
0002 a Madras u 7 40001 0
Pramad Maharast
0003 a Bombay ra 400057 5000
Maharast
0004 Basu Bombay ra 400056 0
0005 Ravi Delhi 100001 2000
Maharast
0006 Rukmini Bombay ra 400050 0

Product:-
Profit Unit_ Reorder_
Product Descri Qty_on_ Sell_p
_perc meas lvl_numb Cost
_no ption hand rice
ent ure er

1.44fl
P00001 5 piece 100 20 525 500
oppies

Monit 1200
P03453 6 piece 10 3 11200
ors 0

Mous
P06734 5 piece 20 5 1050 500
e

1.22
P07
floppi 5 piece 100 20 525 500
465
es

P07 46 Keybo
2 piece 10 3 3150 3050
4 ards

P07 4 CD
2.5 piece 10 3 5250 5100
45 Drive

540
P07965 4 piece 10 3 4400 4000
HDD

1.44
P07975 5 piece 10 3 1050 1000
Drive

10
P0 4 1.22
5 piece 2 3 1050
465 Drive
00
Using the table client and product answer the following questionaries:

1. Select Avg(Cost_price) "Avg_cost_price" from product_master;

2. Change the selling price of 1.44 floppy drive to Rs. 1150.00

3. Change the city of client_no „0005‟ to Bombay.

4. Change the bal_dueofclient_no „0001‟ to 1000.

5. Find the products whose selling price is more than 1500 and also find the new selling price
as original selling price *5.

6. Find out the clients who stay in a city whose second letter is a.

7. Find out the name of all clients having only/atleast 4 letters in their names.

8. List the products in sorted order of their description.

9. Count the total number of order.

10. Calculate the average price of products.

11. Calculate the minimum price of products

12. Determine the maximum and minimum prices. Rename the title as max_price and min_price
respectively.

13. Count the number of products having price greater than or equal to 1500.

14. Calculate the square root of price of each product.

15. Divide the cost of product '540 HDD' by difference between its price and 100.

You might also like