Beruflich Dokumente
Kultur Dokumente
Paper Instructions
https://www.dropbox.com/request/xaQeFDs4JS1wQke20rgz
Question No 1: 15 Marks
Question No 2: 10 Marks
We are designing a schema for a TV show and you have to record the following information:
For each show we have to record its name, genre and participants name. Also record some basic information
which is necessary. Each show has more than one participants. A producer produces only one show and
show is produced by on producer. Producer belongs to a company and company belongs to a country. A
television can broadcast many shows but a show can be broadcasted by only one television. Television has
a name, head office and starting year. A viewer can rate multiple shows and shows also can be rated by
multiple viewers. Rating score range is 0 to 10. Viewers has a username, password and age.
1. Identify entities and their attributes and state attribute types, (i.e. unique, composite, etc.);
(2)
2. Identify relationships, their attributes (if any) and structural constraints; (2)
3. Draw partial ER diagrams showing each entity and all its attributes individually; (3)
4. Draw a simplified ER diagram showing all entities, the relationships between them
(including structural constraints, and relationship attributes (if any)). (3)
Question No 3: 25 Marks
Table 1:customer
Write the SQL statements necessary to satisfy the following queries. Remember to use sensible
headings where appropriate:
1. Find all the tuples from sale person table from center number 4. (1)
2. Find all the tuples from carsales table where commission is 0. (1)
3. Find the name, phone number and address of salesperson from center 2. (2)
4. Find the center name and location of sale person “Sara”. (2)
5. Find all the customer from “LA”. (1)
Good Luck