7 Web PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

CS 3432 – PRINCIPLES OF DATABASE DESIGN AND DATA MANAGEMENT

PRACTICAL TEST
DATE: 24-APR-2019 DURATION: 1 HR
MARKS:

A Schema for an online digital media store.

Below is a database diagram for an online video and music store, including tables for artists,
albums, media tracks, invoices and customers. The business rules incorporated in the
database design include the following:
 Each track is stored using one of the digital formats (MediaType) and has a genre.
 Each track belongs to an album, which is released by a particular artist.
 The store has some playlists, where a single track can be part of several playlists.
 Orders are recorded for customers, but are called invoices.
 Every customer is assigned a support employee, and Employees report to other
employees.
Playlist
PlaylistId
Track
Name
TrackId
Album
AlbumId Name

Title AlbumId

ArtistId MediaTypeId
GenreId PlaylistTrack
PlaylistId
Composer
TrackId
Milliseconds
Bytes
UnitPrice
Artist
ArtistId MediaType
MediaTypeId
Name
Name

InvoiceLine
Invoice InvoiceLineId
InvoiceId
InvoiceId Genre
CustomerId GenreId
TrackId
InvoiceDate Name
UnitPrice
BillingAddress
Quantity
BillingCity
BillingState
BillingCountry
BillingPostalCode
Total
Customer
Employee
CustomerId
EmployeeId
FirstName
LastName
LastName
FirstName
Company
Title
Address
ReportsTo
City
BirthDate
State
HireDate
Country
Address
PostalCode
City
Phone
State
Fax
Country
Email
PostalCode
SupportRepId
Phone
Fax
Email

You might also like