CBSE Class 12 Computers Worksheet (11)
CBSE Class 12 Computers Worksheet (11)
CLASS 12TH
ASSIGNMENT -10
TOPIC - SQL
Customers
Cnum Cname city Rating Snum
Salespeople
Snum Sname city Comm
Orders
Onum Amt odate cnum snum bal
Q 7 Print all records with city = London and rating not equal to 200
Q 8 Select all records whose either city is not London or rating is not greater than 200.
Q 9 Where either city = London and rating>200 or city = rome and rating <100.
Q 14 Where Cname starts from P and end with G and lengthof 6 characters
1
Q 16 Count all records in costumer.
Q 20 Find Snum, max (amt) of all Snum having max (amt) >3000
Q 21 Find sum & max amt of all Snum where date = 10/03/90
Q 22 Find Snum, max amt from orders for all Snum having Snum in (1002, 1007)
Q 27 Give names of both the salesperson and customer for each order after the order no
Q 28 List all customer salesname, comm. Serviced by salespeople with comm. > 12%