Event Management System
Event Management System
Submitted By:
Name: Israt Islam
ID: 223014108
Department of Computer Science Engineering, ULAB
Submitted To:
Name: Jannatul Ferdous Ruma
Lecturer
Department of Computer Science Engineering,
In today's fast-paced world, managing and organizing events are increasing day by day,
managing is becoming harder with traditional methods. Traditional methods are not working
properly. It may cause many problems. And that will cause negative impact on the success of
the event. To make those event successful, we should implement a database driven system.
The given problems goal is to create a database driven event management system which will
solve all the problems. This system will allow users to search for events, booking or cancelling
tickets, viewing events details like organizers, categories, locations etc. It will monitor user’s
activity and so on.
According to the given report file, to create a event management database system, at first I
created an ER diagram. I used proper entities, attributes, relationships like one to one, one to
many, many to one, and many to many. Identified primary keys and foreign keys. Then I
developed a proper database named database event management system based on ER
diagram. I made this ER diagram by using smart draw. To implement the database, I used
modern tool like MSQL and phpMyAdmin. This tool helped me to create a proper database for
event management system with all SQL queries. Finally, I made a proper report on the
database.
ER Diagram
The ER Diagram or Entity Relationship Diagram is a high-level conceptual data model diagram.
ER diagrams is a blueprint to create a database. It helps to organize data efficiently and helps to
analyze data requirements systematically to create a well-designed database. Entity
relationship diagram displays the relationships of entity set stored in a database.ER diagram is
similar like a flowchart. But ER Diagram includes many special symbols which make the model
unique. There are 3 elements of ERD: 1. Entity Sets 2. Attributes 3. Relationship Sets. ER
Diagrams Helps to define terms related to entity relationship modeling. It Helps to describe
entities, attributes, relationships. ER diagram can build databases quickly.
ER Diagram
ER Diagram of Database Event Management System
Database, Table, Data Set
Creating database
CREATE DATABASE database_event_management_system;
Create & Insert data into the Users table
CREATE TABLE Users (
address VARCHAR(50) );
('Art Gallery BD', '[email protected]', '01877889901', '202 Banani Avenue'), ('Food Festival
Dhaka', '[email protected]', '01988900112', '303 Lalmatia Street');
Output:
VALUES
('Technology'),
('Music'),
('Sports'),
('Business'),
('Art'),
('Food & Drink');
Output:
city VARCHAR(50),
capacity INT );
Output:
organizer_id INT,
category_id INT,
location_id INT,
);
VALUES
('Business Summit 2024', 4, 4, 1, '2024-09-30', '10:00:00', 1000, 900, 'Summit for Bangladeshi
entrepreneurs and investors.'),
('Art Expo BD 2024', 5, 5, 4, '2024-07-25', '11:00:00', 1000, 800, 'Art exposition showcasing
contemporary Bangladeshi artists.'),
('Dhaka Food Festival 2024', 6, 6, 6, '2024-08-18', '12:00:00', 10000, 9000, 'A festival celebrating
Bangladeshi culinary experiences.');
Output:
(17, 150.00),
(18, 100.00);
Output:
ticket_id INT,
status ENUM('Booked', 'Cancelled') NOT NULL,
Output:
Output
Queries
• Retrieve all bookings for a specific user with event details.
Code
SELECT b.booking_id, b.booking_date, b.status, e.event_name, e.date AS event_date,
e.time AS event_time
FROM Bookings b
WHERE b.user_id = 1;
Output
Explanation
This query display all bookings done by a specific user. It displays booking details like
booking id, booking date, status, event name, event date, event time. Used join
operation to get data from bookings, tickets, events table.
• Find the top 3 organizers by the number of events they have hosted.
Code
SELECT o.organizer_name, COUNT(e.event_id) AS event_count
FROM Organizers o
Output
Explanation
This query search for top 3 organizers based on the number of events they have been hosted.
This query search their data and display it. It also used join operation.
• List events along with their organizers' contact information (email and
phone).
Code
SELECT e.event_name, o.organizer_name, o.email AS organizer_email, o.phone_number AS
organizer_phone
FROM Events e
Output
Explanation
This query list all the events with organizers names, emails, phone numbers. It also used join
operation to get info from event and organizer table.
• Find the location with the highest capacity available for new events on a
specific date.
Code
SELECT l.location_name, l.capacity
Output
Explanation
This query marks all the location with largest available capacity, it ensures that no events are
booked on that date.
• Find the event name and location for the event with the highest ticket
price.
Code
SELECT e.event_name, l.location_name
Output
Explanation
This query searches the name of event with highest ticket price and display the event name
and location name. it used join operation to get data from ticket table.
GROUP BY c.category_name;
Output
Explanation
This query calculates the average ticket price per event category.it used join operation. As
output it shows the category name and average price serially.
• Show the total number of available tickets and tickets sold for each event.
Code
SELECT e.event_name, e.total_tickets, e.total_tickets - e.available_tickets AS tickets_sold
FROM Events e;
Output
Explanation
This query lists all events with available tickets and sold out tickets total number. It calculates
sold tickets number by subtracting available tickets from total tickets.
Output
Explanation
This query finds back all bookings which been canceled by a specific user. Also display the
canceled date and event name. it filters by users ID and status of booking being canceled.
FROM Events e
Explanation
This query list the upcoming events happening in a specific city and category. It used joint
operation.it joins the event, location, category table and filter data.
FROM Events e
WHERE e.date BETWEEN CURRENT_DATE AND DATE_ADD(CURRENT_DATE, INTERVAL 1
MONTH);
Output
Explanation
This query marked all events scheduled to happen within the next month. It checks the date
and compare with recent date. Ecsured that there is one month gap.
Output
Explanation
This query calculated revenue generated for each event category by counting payment mount
from payment table.
• List all events with the number of bookings they have received
Code
SELECT e.event_name, COUNT(b.booking_id) AS total_bookings
FROM Events e
JOIN Tickets t ON e.event_id = t.event_id
Explanation
This query lists all events with total number of bookings. it joins the events, tickets, bookings
table. Counts how many bookings has received.
Conclusion
This lab report is created based on an event management system. The blueprint shows several
interrelated tables designed to handle many properties of event organization and user
interaction. This database has Organizers, Categories, Users, Events, Tickets, Bookings, locations,
Payments, and Cancellations entity. I used foreign keys to interconnect tables. Used various
queries to get specific information like booking details, organizers performance, ticket avaibility
etc. the project shows how a well-designed ER diagram can guide to development of a
relationship database.
There are some limitations in this database. This database doesn’t have enough data set or
information. This database many not be able to handle large dataset. Few features are
simplified. There is no user feedback options, real time ticket tracking option, advanced
payment system.
During project, I faced some problems. During data entry I didn’t maintained data integrity with
foreign key constrains, so I faced difficulties. Then I corrected it.
I used PHPMYADMIN to create this database. Its very user friendly for users to write and
execute SQL queries. Also, to create this database, I used my knowledge gained from lectures
and self-studies. To further enhance the project several other tools and technique could be
used.
If we modify and enhanced this database with additional features like user feedback options,
real time ticket tracking option, advanced payment system and many more, it could be perfect
database and a complete end to end solution for event organizers, ticket selling agencies, etc.
Modified version of this database could be used in real life event management.
---------- X ----------