Dbms Lab Final Assignment
Dbms Lab Final Assignment
Submitted By:
Name: Mirza Mostafa Abrar
ID: 223014084
Department of Computer Science Engineering, ULAB
Submitted To:
Name: Jannatul Ferdous Ruma
Designation: Lecturer
Department of Computer Science Engineering, ULAB
Date of Submission:
ER Diagram:
DATABASE AND TABLES:
QUERIES:
1.
The query searches the Events and Organizers tables for events
where the company name of the organizer is 'Redfox Entertainment'.
It lists the event names for all the events organized by Redfox
Entertainment.
2.
The query filters the Users table to find users who registered after
January 1, 2023. It will return a list of usernames and their
corresponding registration dates for those who meet this
condition.
3.
The query selects the event name attribute from the event table.
Where the event date is 2024-03-15. There was no match on that date
as there were no events on that day.
4.
The query lists the names of events along with their ticket prices, but
only for events where the price per ticket is more than 50. Any event
that has a ticket price of 50 or less will not be included in the result.
5.
The query returns the names of organizers along with their email
addresses, but only for those organizers whose email addresses are
from gmail.
6.
The query returns the user IDs who have purchased more than 1
tickets for any event, along with the corresponding event IDs and
the number of tickets they bought. The condition (quantity > 1)
ensures that only purchases with more than 1 tickets are shown.
7.
This query will return a list of user ids along with the count of
distinct events they have booked, but only for users who have
booked more than one unique event.
10.
This query will return the names of all events that are held at the
'Convention Center, London'.
11.
This query will return a list of event ids along with the total
number of bookings for each event.
12.
This query will return the names and ticket prices of events where
the ticket price is between 20 and 50.
13.
This query will return a list of user ids along with the total number
of bookings for each user, but only for users who have made more
than one booking.