0% found this document useful (0 votes)
66 views3 pages

Act 11

The document defines common database terms like primary key, foreign key, entity, and referential integrity. It provides sample data for client, event, and theme tables with potential integrity issues. It asks to examine the data and identify any violations of data integrity rules.
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)
66 views3 pages

Act 11

The document defines common database terms like primary key, foreign key, entity, and referential integrity. It provides sample data for client, event, and theme tables with potential integrity issues. It asks to examine the data and identify any violations of data integrity rules.
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/ 3

Vocabulary

Identify the vocabulary word for each definition below

A constant which ensures that the column


contains no null values and uniquely identifies
each row of the table
A column or set of columns that refer to a
primary key in the same table or another table

A entry in a table, consisting of values for each


appropriate column

An implementation of an attribute or relationship


in a table

An integrity constraint that requires every value


in a column or set of columns be unique
Collection of objects or a relations, set of
operators to act on those relations and data
integrity for accuracy and consistency
More than one column or combination of
columns that could serve as the tables primary
key

Part Two: Identify the integrity rules below.

1. __________________________ A column must contain only values consistent with the defined data
Format of the column
2.___________________________Define the relationally correct state for a database, they ensure that
Users can perform only those operations that leave the database in a correct, consistent state a correct,
Consistent state
3.___________________________A primary key must be unique and no part of the primary key can be
Null
4.___________________________A foreign key must match an existing primary key value (or else be
null)
5.___________________________The data stored in a database must comply with the rules of the
Database

1. Data Integrity in the DJs Database

Examine the sample data for these tables in the DJs on Demand database. Check for entity, referential,

And column integrity. Identify any data-integrity violations. Assume that all date columns should have a

Date format and all amount (cost) columns should have a number format
Primary Key CLIENTS

id First_name Last_name Phone_num email


100 Antonio Peters 555-1891 [email protected]

45 Mary Collins 662-2275

Sarika Patel 383-4572 [email protected]

19 Ivan Balazs 7777-5511 [email protected]

Primary Key Foreign Key Foreign Key

EVENTS

id name date Description cost Client_id Theme_code

15 Peter’s 22-Apr 800.00 100 BB


graduation

17 Collins 12-Mar Cocktail 2gs 45 TROP


wedding hour
followed by
dinner
25 Collins Day before Garden 400.00 45 TROP
rehearsal wedding party
dinner
50 Elks Club 01-May Black-tie 1200.00 77 SIXT
annual affair
fundraiser

Refers to

THEMES

code description
Primary Key
CARN Carnival

SIXT Sixties

TROP Tropical

You might also like