Assignment- Relational Database Design & Implementation
Important Note:
You are required to submit an electronic copy to ilearn as well as a hard copy of your assignment to the assignment box allocated in the ground floor of E6A by the due date.
Task Specifications
Task 1- Logical Database Schema Design
Based on the following provided sample solution for the diagnostic assignment, turn it into relational database schema indicating primary key for each table and foreign key if there is any in each table and the primary key that it refers to in another table.
(Note: the figure is small, please enlarge it on the screen or print it)
Task 1- Normalization & DDL
Look into the data provided in excel
List all the functional dependencies
Identify all the candidate keys.
Which normal form is this in?
Convert from INF to BCNF (Show the conversion from one NF to another along with the dependencies)
Create tables based on your normalized form[ in Oracle-SQL developer]
Task 2- SQL Queries
Write a SQL query that displays the CinemaID, CinamaName and email of Cinema that have more than 2 branches or a branch in the Suburb of ‘Greyjoy'
Write a SQL query that displays BranchAddress, CinemaName and PhoneNumber of the branch that has postcode that starts with 2 or 6
Write a SQL query that displays CinamaName, BranchAddress, Session Date(dd-month-yyyy format), Movie StartTime and date where any French movie is being screened. Sort the result by CinemaName descending
Write a SQL query that displays CinamaName, BranchAddress, ScreenName, MovieName, YearReleased and Language that screens either a Spanish Movie or a German movie in afternoon or evening session
Write a SQL query that displays CinamaName, BranchAddress and the number of screens that are scheduled to screen ‘The Hundred-Foot Journey.