0% found this document useful (0 votes)
25 views6 pages

Dbms Lab2

The document outlines a digital assignment for a database systems lab, focusing on Data Definition Language, sorting, and grouping. It includes SQL queries for altering tables, sorting data with WHERE clauses, and using aggregate functions for grouping data. The assignment requires at least five queries for each category, covering various aspects of a tour management system database.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views6 pages

Dbms Lab2

The document outlines a digital assignment for a database systems lab, focusing on Data Definition Language, sorting, and grouping. It includes SQL queries for altering tables, sorting data with WHERE clauses, and using aggregate functions for grouping data. The assignment requires at least five queries for each category, covering various aspects of a tour management system database.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

CSI1001 – Principles of Database Systems Lab

Digital Assignment 2 – Data Definition Language, Sorting and Grouping


Register Number: 23MIC0034 Name: Vaishnavi Kesari
Database Name: Tour management system

ALTER TABLE (at least 5 different queries):

Q1) ADD Rating Decimal

Q2) Modify Fare Decimal

Result of above two Queries :


Q3) Add Customer type

Q4)Change ‘Owner_Name’ to OwnerName

Q5) Drop Column Id_proff_2


SQL queries for SORTING along with WHERE clause (at least 5 queries):

Q1) Customer where Age>30

Q2) Hotel Booking where Hotel Location=Mumbai order by amount

Q3)Select all from tour using fare

Q4) Select all from flight booking order by journey date


Q5) display the from Cab Booking order by total Amount

SQL queries for AGGREGATE functions and GROUPING along with WHERE clause (at least 10 queries):
Q1) Count the total number of tours available

Q2) Find the average Fare of tours


Q3) Get the highest fare of any tour

Q4) Find the lowest fare of any tour

Q5) Get the total revenue from Tour_Booking

Q6) Count the number of bookings per customer


Q7) Find the average number of persons per tour

Q8) List the total bookings per flight

Q9) Find the most expensive hotel booking per hotel

Q10) Retrieve the total number of drivers assigned per cab

**************

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy