You are on page 1of 1

Write an SQL command for the queries for the questions relation SHOP shown below:

No.
1
2
3
4
5
6

Shop_name

Sale

Area

Cust%

Rating City

S.M.Sons
Dharohar
Kriti Art
Ripple
Best Stores
Crystal

250000
500000
300000
380000
456000
290000

West
South
North
North
East
South

68.6
81.8
79.8
88.0
92.0
66.7

C
A
B
B
A
A

Delhi
Mumbai
Kolkata
Mumbai
Delhi
Kolkata

-Show the names of all shops which are in the South area and cust-percent < 75
-To display number of shops in each city.
-To display list of all the shops with sale > 300000 in ascending order of Shop_Name.
-To display Shop_name,Area and Rating for only thos shops whose sale is between
350000 and 400000 (including both 350000 and 400000).
-To count the no. shops whose rating is A

You might also like