Language:EN
Pages: 7
Words: 1386
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
primary keys and foreign keys identified

Database Model and SQL Queries Assignment Answers

Your question:

student submitted image, transcription available below

student submitted image, transcription available belowstudent submitted image, transcription available below

Assignment Help Answers with Step-by-Step Explanation:

a. Entities, Relationships, and Attributes: Identify all entities (tables), relationships between entities, and attributes for each entity.

b. Primary Key: Underline the primary key for each entity.

Entities:

- Movie (MovieID [PK], Title, Genre, Duration, Language, Release Date, Rating)

- Ticket (TicketID [PK], CustomerID [FK], MovieSessionID [FK], DateOfPurchase, TicketType, Format, Comment)

- Review (ReviewID [PK], CustomerID [FK], MovieID [FK], ReviewDate, Rating, Comments)

- WeeklySchedule - MovieSession: Many-to-Many (with ScheduleDate as an associative entity)

- Customer - Ticket: One-to-Many

b. Attribute Names: Define attributes for each relation.

c. Primary Keys and Foreign Keys: Identify primary keys and foreign keys.

3. MovieSession (MovieSessionID [PK], MovieID [FK], SessionID [FK])

4. WeeklySchedule (ScheduleID [PK], WeekStarting, Day, MovieSessionID [FK])

a. Basic Concepts of Relational Algebra:

- Relational algebra is a theoretical framework for manipulating and querying relational databases. It includes operations like projection (π), selection (σ), join (⨝), etc.

FROM Customer

WHERE PostalAddress IS NULL;

Here, π represents projection, σ represents selection, and C represents the Customer relation.

You can similarly express other SQL queries in relational algebra using these basic operations.

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Stacey Clayton

PageId: DOCC61175D