XII CS Monthly Exam - Sept
XII CS Monthly Exam - Sept
XII CS Monthly Exam - Sept
a) Write a query to display the CNO and CNAME for who travelled more than 100 kms. (1)
b) Write a query to display the names of customers who travelled in 2015 only. (1)
c) Write a query to display the details of customers who travelled with > 30 passengers (1)
d) Write a query to display the details of customers in descending order of KM (1)
e) Write a query to display the number of males and females who travelled <= 100 kms. (1)
f) Give the output for the following:
SELECT MAX(NOP) – MIN(NOP) FROM TRAVEL; (1)
SELECT COUNT(CNAME) FROM TRAVEL GROUP BY GENDER (1)
HAVING KM IN(90,100,120,450);