Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 4

Order ID

Product

Unit Price
14

Quantity
12

10248

Cookies

10248

Bread

9.8

10

10248

Biscuits

34.8

10249

Tofu

18.6

10249

Curd

42.4

40

10250

Table

7.7

10

10250

Chair

42.4

35

10250

Runner

16.8

15

10251

Board

16.8

10251

Screen

15.6

15

10251

Stand

16.8

20

10252

Almira

64.8

40

10252

Safe

25

27.2

40

10

20

14.4

42

16

40

10252

Side-Runner

10253

Umbrella

10253

Waterproof shield

10253

Supporter

10254

Staircase

3.6

15

10254

Stand

19.2

21

10254

Climber

21

Do the following Exercise


Display the maximum/ minimum price
Display the Cheapest Price
Highlight the maximum price
Calculate the total quantity of the product with Order ID=10250
Calculate the total quantity of the product with Order ID=10251 & Discount is 5% percent
Count the products with Order ID=10253
Count the products with Order ID=10254 and their quantities are greater than 30 and less than 70
Count the products with their unit prices > 40
Calculate the average of unit prices of products with Order ID =10255
Use rank function to rank the products based on their unit prices

With the Order Details table above, please


1.Highlight product(s) with cheapest price
2.Highlight product(s) with highest price
alculate the total quantity of the product with Order ID=10260
4.Count the products with Order ID=10255
with Order ID=10255 and their quantities are greater than 30 and less than 70
6.Count the products with their unit prices > 40
nt the products with their unit prices > 40 and their quantities >30
ulate the average of unit prices of products with Order ID =10255
e rank function to rank the products based on their unit prices

0
1
3
3

Discount
0
0
0
0
0
0
0.15
0.15
0.05
0.05
0
0.05

0.05
0
0
0
0
0.15
0.15
0

You might also like