CS403 Assignment No 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

CS403 (Database Management System)

Assignment No 01

BC210202381
Usman Ali

Stadium Ticket Booking System

Watching a live cricket game is always a thrilling experience for the cricket lovers. To watch a
live game, spectators have to book tickets first. As no. of spectators is usually large for live cricket
event, so people coming to watch a match in the stadium may face the parking issue.

Stadium tickets booking system is an online system to book the tickets and parking slot. The
seating area reserved for spectators/users in the cricket stadium is divided into different blocks such as
red, green, blue, yellow, purple, orange and white. Each block is divided into sections; A, B, C and so
on. Number of seats may vary in each block. The blocks are of two types; VIP blocks and General
Blocks. VIP blocks have some extra facilities for the Spectators and mostly reserved for the VIPs. The
charges of VIP blocks are higher than General blocks.

Stadium has a schedule of matches. Users can check stadium information and matches schedule
and hence can book tickets as per requirement for a particular match in any section of any block. The
user has to provide required information to book a ticket. One user can buy maximum 10 tickets per
match. After a successful booking, a unique booking number will be shared with the user. Users can
also book the parking slot for which they will be charged some fixed amount based upon vehicle type.
Payments will be transferred online or at the stadium booking office using the booking number.
Consider above scenario and perform following tasks:

Task No. 01 (Solution):

 Identify all possible entities of the given system.

1. Cricket Stadium
2. Spectator/User
3. Ticket
4. Parking slot
5. Block
6. Section
7. Match
8. VIP Block
9. General Block
 Identify super types and subtypes entities.

1.      Block
- Super type: Block
- Sub types: VIP Block, General Block

2.      Spectators/Users:
- Super type: Spectators/Users
- Subtypes: VIP spectators/Users, General Spectators/Users

3.      Tickets:
- Super type: Tickets
- Subtypes: VIP Tickets, General Tickets

 Identify at least 3 attributes of simple and super type entities, one specialized attribute for
sub type entities.

1.      Cricket Stadium


- Attributes: Name, Location, Capacity,

2.      Spectator/User

- Attributes: Name, Email, Contact Number,

3.      Ticket

- Attributes: Ticket ID, Block ID, Price

4.      General Tickets:

- Attributes: Ticket ID, Seat Number, Price

Specialized attribute for sub type entities is mentioned below:

1.      VIP Block

- Specialized attribute: Extra Facilities

 Extract relationships among entities with minimum and maximum cardinalities.

1. Spectator/User-Tickets

- Minimum cardinality: 1( a user may  have only one ticket)


- Maximum cardinality: 10( a user can have a maximum of 10 tickets)

2.  Cricket Stadium – Block


- Minimum cardinality: 1( a stadium must have at least one block)
- Maximum cardinality: Many( a stadium can have multiple blocks)

3.  Block – Section

- Minimum cardinality: 1( a block must have at least one section)


- Maximum cardinality: Many( a block can have multiple sections)

4.  One Match can be scheduled at one cricket stadium

- Minimum cardinality:  1
- Maximum cardinality: 1

5.  One Match can have multiple Tickets:

- Minimum cardinality:  0(In case no tickets are sold)


- Maximum cardinality: Many

6.  One ticket can be associated with only one block and one section

- Minimum cardinality: 1
- Maximum cardinality: 1

7.  One parking slot can be booked for one vehicle

- Minimum cardinality: 1
- Maximum cardinality: 1

8.  One Booking Office can be associated with Multiple cricket Stadiums.

- Minimum cardinality: 1
- Maximum cardinality: Many
Task No. 02 (Solution):

 You will have to make a final comprehensive Entity Relationship Diagram (ERD) of the
system showing all entities, super type, and sub type entities, their attributes and
relationships identified in Task 1.
 Your ERD must show all minimum and maximum cardinalities clearly.

You might also like