Sei sulla pagina 1di 2

ENTITY UNIQUE KEY:

- is something of importance to users


or organization that needs to be represented ➔ SUPERKEY
in the database. - A composite key that is composed
- uses one topic/theme/business of two or more attributes which may or may
concepts not be extraneous
➔ CANDIDATE KEY
RELATION - A minimal superkey (i.e. without
extraneous attributes)
- is a two-dimensional table with
➔ PRIMARY KEY
specific characteristics
- A candidate key chosen to be the
- it consists of rows and columns
main key for the relation
- If you know the value of the primary
CHARACTERISTICS OF A RELATION
key, you will be able to uniquely identify a
single row within the table
* Rows contain data about instances
of an entity ➔ COMPOSITE KEY
*Columns contain data about - A unique key that is composed of
attributes of an entity two or more attributes
* No two rows are identical - For a key to be unique, it must often
* The order of rows is unimportant become a composite key
*The order of columns is unimportant ➔ SURROGATE KEY
* Each column has a unique name - A surrogate key is a unique, numeric
* Cells of the table hold a single value value that is added to a relation to serve as the
* All values in a column are of the primary key
same kind (data type) - Surrogate key values have no
meaning to users and are usually hidden on
KEYS forms, queries, and reports
- is one (or more) column(s) of a - A surrogate key is often used in
relation whose values are used to identify a place of a composite primary key
row
NON - UNIQUE KEY:
UNIQUE KEY ➔ FOREIGN KEY
- Data value is unique for each row. - To establish relationships, we need
- Consequently, the key will uniquely to implement a foreign key
identify a row. - A foreign key is a primary key from
the referenced relation that is placed in the
NON - UNIQUE KEY referencing relation
- Data value may be shared among - The key is called a foreign key in the
several rows. table that receives the key
- Consequently, the key will identify
a set of rows REFERENTIAL INTEGRITY
- States that every value of a foreign
key must match a value of an existing
primary key
NULL VALUES
- Means that no data exists

PROBLEMS WITH NULL VALUES


● The column value is not appropriate
for the specific row
● The column value has not been
decided yet
● The column value is unknown

THREE STAGES OF DATABASE


APPLICATION DEVELOPMENT

REQUIREMENTS ANALYSIS STAGE


- Process of gathering information
so that we can understand the data
problem for which we are
attempting to design a solution.

DESIGN STAGE
- Process of creating conceptual
data models which are graphical
representations of the database
solutions that we ultimately hope
to implement.
IMPLEMENTATION STAGE
- Deploying the data models in
actual physical database.

REQUIREMENTS ANALYSIS STAGE


➔ Sources of Requirements
◆User Interviews
◆Forms
◆Reports
◆Queries
◆Use Cases
◆Business Rules
◆Observation
◆Participation
◆JAD Sessions

Potrebbero piacerti anche