Advaced Database Tutorials.
Advaced Database Tutorials.
Instruction: You are required to create a database on DB2 for the following conceptual schema
for an event management company. The attributes for each entity are listed in the table below.
Event Manager
assign Equipment
Event
make
Client
1
TIS3351 Advanced Database
1. Complete the ER-diagram above with appropriate connectivity and cardinality based on
the following business rules:
a. Each event has many engagements. An engagement is associated with one and
only one event.
b. Each engagement is handled by an event manager. But, an event manager
handles more than one engagement.
c. Each engagement is associated with one and only one client, but a client has
many engagements.
d. Each engagement uses a many pieces of equipment. Each piece of Equipment
can used in many engagements.
2. Create the relational schema (logical model) for the ER-diagram above. How many
relations does it have? Identify the primary keys and foreign keys in the relations, if any.
4. Implement a database using IBM DB2 based on the outcome of Step #1 and #2.
5. Add two columns named Fee and Discount into Engagement table.
6. Create a view which shows only the events that is conducted outdoor. In your view
creation, make sure that it does not accept or process any events that are conducted
indoor.
7. What is the command used to see all the tables that you have created in the database?
8. Write a SQL command to show the entity integrity and referential integrity constraints of
all the tables (one by one) that you have created.
You should demonstrate your answers from Step #4 to Step #8 to your tutor.