Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shani-kumar-gupta/bookmyshow-airtribe
Problem Solving Case: Bookmyshow
https://github.com/shani-kumar-gupta/bookmyshow-airtribe
database dbms mysql normalization sql
Last synced: 30 days ago
JSON representation
Problem Solving Case: Bookmyshow
- Host: GitHub
- URL: https://github.com/shani-kumar-gupta/bookmyshow-airtribe
- Owner: Shani-Kumar-Gupta
- Created: 2024-01-03T13:41:25.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-05T19:12:20.000Z (11 months ago)
- Last Synced: 2024-02-06T20:35:41.376Z (11 months ago)
- Topics: database, dbms, mysql, normalization, sql
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Problem Solving Case: Bookmyshow
## Objective and Project Description:
Bookmyshow is a ticketing platform where you can book tickets for a movie show. The image attached represents that for a given theatre we can see the next 7 dates. As one chooses the date, we get list of all shows running in that theatre along with the show timings.
TASK 1 - As part of this assignment, we need to list down all the entities, their attributes and the table structures for the scenario mentioned in the previous slide. You also need to write the SQL queries required to create these tables along with few sample entries. Ensure the tables follow 1NF, 2NF, 3NF and BCNF rules.
TASK 2 - Write a query to list down all the shows on a given date at a given theatre along with their respective show timings.
## Identify the Entity for the problem case:
As per the problem statement analysis, we required the below entities to cater to the above-mentioned functionality-
```bash
1. theatres
2. movies
3. screens
4. shows
```## Identify the relationship b/w the entities mentioned above:
1. theatres vs movies:
1 Theatre can multiple Movies to run: (1:M)
1 Movie can run in multiple Theatre: (1:M)
```bash
Final Relationship b/w Theatres vs. Movies: (M:M)
```2. movies vs shows:
1 Movie can have multiple shows: (1:M)
1 Show can only run one Movie: (1:1)
```bash
Final Relationship b/w Movies vs. Shows: (1:M)
```3. theatres vs shows:
1 Theatre can have multiple shows: (1:M)
1 Show can run on multiple Theatres: (1:M)
```bash
Final Relationship b/w Theatres vs. Shows: (M:M)
```