SQL Practice Set
SQL Practice Set
SQL Practice Set
Create table through appropriate SQL commands. Define all integrity constraints and enter sufficient data.
a) Give the details for those shipments where the start-city and destination-city are same.
b) Give the driver names who participated in maximum numbers of shipments
c) Give the name of the city never appears in destination-city.
d) Give the name of the cities whose population is more the average of all the cities.
e) Give the shipment details where the starting character of customer name and the last character
of driver name is ‘A’;
Create table through appropriate SQL commands. Define all integrity constraints and enter sufficient data.
Create table through appropriate SQL commands. Define all integrity constraints and enter sufficient
data.
a) Give the customer name who has account but not any loan
b) Give the name of the customer who has either (10000-20000) or (30000-40000) in their account.
c) Which branch has issued maximum amount of loan?
d) Give the name of the customer who has maximum balance in their account.
e) Give the name of the customer who has opened an account in a city in which he is not
located.
Create table through appropriate SQL commands. Define all integrity constraints and enter sufficient
data.
a) Give the name of the employee who has certification on more than 1 type of aircrafts.
b) Give the name of the employee who has no certification.
c) Give the name of the city where from maximum flight takes off (source_city)?
d) Give the name of the company, which spend maximum salary for their employees.
e) Give the name of the company which has maximum types of flights.