Relations Flashcards

Logical construct also known as a table which is two dimensional has tuples as Rows and attributes as columns with a distinct name (29 cards)

1
Q

Relations - logical construct also known as a table

A

two dimensional has two pools as rows attributes as columns with a distinct name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

E F Codd

A

Relational models creator. use the two terms of synonyms for relation whose contents can be permanently saved for future use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Relational database model

A

Enables logical presentation of the data and its relationships.enables you to view data logically rather than physically. easier to understand than the hierarchical and network models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The logical view

A

Simplicity yields simple. to effective database design methodologies. 3 facilitated by the creation of data relations which are based on logical construct called a relation AKA as a data set in Microsoft Access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

8 characteristics of a relational table

A

1 the table is two dimensional structure with rows and columns
2 each row is a tuple and represents a single entity occurrence within the entity set
3 each table column represents an attribute and has a distinct name
4 each intersection of a row and column represents a single data value
5 all values in a column must conform to the same data format. Numeric, character, date, logical
6 each column has a specific range of values known as the attribute domain
7 the order of the Rose and columns does not matter in dbms
8 each table must have a primary key which is an attribute or combination of attributes which uniquely identifies each row

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Rule of a key

A

Based on the concept of determination the state in which knowing the value of one attribute makes it possible to determine the value of another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Functional dependence

A

The value of one or more attributes determine the value of one or more of the attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Determinant or key

A

The attribute whose value determines another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Dependent

A

The attribute whose value is determined by the other attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Full functional dependence

A

The entire collection of attributes in the determinant is necessary for the relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Key consists of

A

1 one or more attributes that determine other attributes
2 used to ensure that each row in a table is uniquely identifiable
3 establish relationships among tables
4 insured integrity of the data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Types of keys

A

The composite key
Composed of more than one attribute
Is a part of the key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Relational database keys - super key and candidate key

A

Super key a key that can uniquely identify any role in the table

Candidate key minimal or irreducible super key without any unnecessary attributes does not contain a subset of attributes that is itself a super key and it’s based on a functional full functional dependency can have more than one candidate keys in a table or candidates because they are eligible options from which the designer will choose when selecting the primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Relational database keys - primary key, foreign key

A

Primary key is a candidate key selected to uniquely identify all the attributes in a given row in the table cannot contain no entries and controls redundancy that allows the relational model to work

Foreign key is the primary key of one table placed in another table to create a common attribute and is used to ensure referential integrity it’s an attribute or combination of attributes in one table must be a null or a valid value in the primary key of the related table and it can contain duplicates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Relational database key- secondary key

A

Secondary key is used strictly for data retrieval purposes it does not necessarily yield a unique outcome it’s effective in narrowing down a search depending on how restrictive the key is

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Entity integrity

A

Row (entity instance) has a primary key. attribute in primary key cannot container null

17
Q

Null

A

Never allowed in any part of the primary key
Creates problems with functions such as COUNT, AVERAGE and SUM
Special codes are used known as Flags to indicate the absence of some value

18
Q

Referential integrity

A

Reference of an entity instance by another entity instance is valid
Foreign keys are used
Null entry as long as it’s not a part of the tables primary key
All none null foreign key value must reference and exist in primary key value

19
Q

NULLS

A

1 Indicate my Flags or special codes - none value
2 NOT NULL placed on a column tincture everyone in the table has a value
3 UNIQUE constraint placed on a column to restrict duplicate values

20
Q

Minimal relational dbms must have

A

SELECT, PROJECT & JOIN

21
Q

Relational Set Operators

A
Select 
Project
Union
Intersect
Difference
Join
Divide
Product
22
Q

Joins

A
Natural
Equijoin
Theta
Inner
Outer
23
Q

Data Dictionay

A

1 Describes all tables in DB created by user and designer

2 described as the DB designer’s database

24
Q

Relvar AKA structure

A

The data in the structure would be a relation which is a variable

25
Homonyms
The same name is used to label different attributes
26
Synonyms
Different names to describe the same attribute
27
One to many (1:M)
Norm for relational databases
28
One to one (1:1)
One entity can be related to only one other entity and vice versa
29
Many-to-many (M:N)
1 Implemented by creating a new entity in 1:M relationships with the other entities 2 composite entity (i.e., bridge or associative entity): helps avoid problems inherent to M:N relationships - includes the primary keys of tables to be linked