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

Tutorial 2 Relational Model No Group: Matrix # Name 1 2 3 4 5

The document provides an overview of relational database terminology and concepts. It defines key terms like tuple, degree, cardinality, relation, attribute, domain, entity, relationship, and schema. It then discusses using an entity-relationship diagram to model the logical structure of a database. Finally, it presents a scenario for designing a database for a university, including entities like departments, courses, instructors, and students along with their attributes.

Uploaded by

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

Tutorial 2 Relational Model No Group: Matrix # Name 1 2 3 4 5

The document provides an overview of relational database terminology and concepts. It defines key terms like tuple, degree, cardinality, relation, attribute, domain, entity, relationship, and schema. It then discusses using an entity-relationship diagram to model the logical structure of a database. Finally, it presents a scenario for designing a database for a university, including entities like departments, courses, instructors, and students along with their attributes.

Uploaded by

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

Tutorial 2

Relational Model

No GROUP:
Matrix # Name
1
2
3
4
5

Relational Model Terminology

Tuple is a row of a relation.


Degree is the number of attributes in a relation.
Cardinality is the number of tuples in a relation.
A relation is a table with columns and rows.
Attribute is a named column of a relation.
Domain is the set of allowable values for one or more attributes.
An entity is a “thing” or “object” in the real world that is distinguishable from other objects.
For example, each person is an entity, and bank accounts can be considered as entities.
Entities are described in a database by a set of attributes.
A relationship is an association among several entities. For example, a member relationship
associates an instructor with her department.
The overall logical structure (schema) of a database can be expressed graphically by an
entity-relationship (E-R) diagram.

What is a Relational Database?

Database Design for a University

To illustrate the database design process, we are to examine how a database for a
university could be designed. The initial specification of user requirements may be
based on interviews with the database users, and on the designer’s own analysis of
the organization. The description that arises from this design phase serves as the
basis for specifying the conceptual structure of the database. Part of the major
characteristics of the university are presented.
The university is organized into departments. Each department is identified by a
unique name (dept name), is located in a particular building, and has a budget. Each
department has a list of courses it offers. Each course has associated with it a course
id, title, dept name, and credits, and may also have associated prerequisites.
Instructors are identified by their unique ID. Each instructor has name, associated
department (dept name), and salary. Students are identified by their unique ID. Each
student has a name, an associated major department (dept name), and tot cred
(total credit hours the student earned thus far).

What you have to do?


1. Identify and list all the entities available from the scenario above
2. Identify and list the attributes
3. Draw the table(s) for the university

1.

2.

3.

You might also like