0% found this document useful (0 votes)
37 views11 pages

SQL Queries: 1. Creation of Table Flights With Primary Key Fno

1. The document describes a series of SQL queries that create tables, insert and modify data, display results, and alter structures. This includes creating tables for flights and fares, inserting flight data, displaying specific flight details based on routes, sorting results, updating fares and taxes, changing airline names, and deleting rows and entire tables.

Uploaded by

Vipul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views11 pages

SQL Queries: 1. Creation of Table Flights With Primary Key Fno

1. The document describes a series of SQL queries that create tables, insert and modify data, display results, and alter structures. This includes creating tables for flights and fares, inserting flight data, displaying specific flight details based on routes, sorting results, updating fares and taxes, changing airline names, and deleting rows and entire tables.

Uploaded by

Vipul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 11

SQL QUERIES

1. Creation of Table flights with Primary Key fno


2. Creation of Table FARES
3. Insertion of data into tables flight
4. Displaying details of all flights from Mumbai
5. Arranging contents of flights in descending order of destination.
6. Increasing Tax by 25% for flights from Delhi
7. Displaying fno and fare for flights from Mumbai to
Kochi
8. Updating fare of fno ic799 to 12500
9. Displaying details of all flights
10. Changing Airlines of mu499 to Deccan Airlines
11. Increasing flight tax from Mumbai to Bangalore to
10%
12. Modifying Sahara to Jet Airways
13. Displaying sum of fares greater than 8000
14. Displaying Airlines in descending order where fare
>8000
15. Giving discount on fare where tax is
5%
16. Average of Fare
17. Finding minimum number of stops
18. Deleting flight ic307 whose fare is 4500
19. Removing Table FARES

You might also like