0% found this document useful (0 votes)
63 views2 pages

Why Business Rules Are Important For A Good Database Design? Give 3 Examples of Business Rules in Academic Environment

This document contains a tutorial on database design that asks the reader to: 1) Give examples of business rules in an academic environment and define DDL and DML, explaining the differences. 2) Identify relationship types and business rules from an ERD diagram, then create a Crow's Foot ERD. 3) Explain how to identify entities, relationships, and attributes from requirements and associate them. 4) Explain primary keys chosen for tables in a hotel booking schema, identify foreign keys, and how entity and referential integrity rules apply.

Uploaded by

Jack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views2 pages

Why Business Rules Are Important For A Good Database Design? Give 3 Examples of Business Rules in Academic Environment

This document contains a tutorial on database design that asks the reader to: 1) Give examples of business rules in an academic environment and define DDL and DML, explaining the differences. 2) Identify relationship types and business rules from an ERD diagram, then create a Crow's Foot ERD. 3) Explain how to identify entities, relationships, and attributes from requirements and associate them. 4) Explain primary keys chosen for tables in a hotel booking schema, identify foreign keys, and how entity and referential integrity rules apply.

Uploaded by

Jack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

WIA2001/WIB2001

DATABASE
SEM 1, 2022/2023

Tutorial 3

1. Why business rules are important for a good database design? Give 3 examples of business
rules in academic environment.

2. What is the definition of DDL and DML? Explain the differences between DDL and DML.

3. Refer to Figure 2.0 below and answer the following questions:

Figure 2.0 : DealCo Relational Diagram

i. Identify each relationship type and write all of the business rules.

ii. Create the basic Crow’s Foot ERD for DealCo.

4. i. How would you identify entity and relationship types from a user’s requirements
specification?

ii. How would you identify attributes from a user’s requirements specification and
then associate the attributes with entity or relationship types?

5. The following tables form part of a database held in a relational DBMS:-


Hotel (hotelNo, hotelName, city)
Room (roomNo, hotelNo, type, price)
Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo)
Guest (guestNo, guestName, guestAddress)

where
Hotel contains hotel details and hotelNo is the primary key;
Room contains room details for each hotel and (roomNo, hotelNo) forms the
primary key;
Booking contains details of the bookings and (hotelNo, guestNo, dateFrom)
forms the primary key;
and
Guest contains guest details and guestNo is the primary key.

Based on the schema above,


i) Explain why the primary keys are chosen as such for each of the table
ii) Identify the foreign keys for each of the table (if any).
iii) Explain how the entity and referential integrity rules apply to these
relations.

You might also like