Unit 4 : Relational Database Flashcards
1
Q
What does relational model enables programer to do?
A
- To view data logically rather than physically
2
Q
What is the advantages of a table in the relational model?
A
- Has the advantage of structural and data independence
3
Q
What does a table in the relational model resemble from conceptual point of view ?
A
- A file
4
Q
What table is easier to understand its hierarchical and network database predecessors?
A
- Relational Model
- Order
1. Hierarchical
2. Network
3. Relational
4. Entity Relationship
5
Q
What does table consists? ( 2 )
A
- Rows
- Columns
6
Q
What does entity set consists?
A
- Contains group of related entities
7
Q
Why does table is also called as relation?
A
- Because Codd used the term relation as a synonym for table
8
Q
What can we think table as?
A
- A persistent relation ( A relation whose contents can be permanently saved for future use )
9
Q
What does keys consists?
A
- Consists of one or more attributes that determine other attributes
- The key’s role is based on determination :
- If you know the value of attribute A, you can look up ( determine ) the value of attribute B
10
Q
What is primary key?
A
- An attribute ( combination of attributes ) that uniquely identifies any given entity ( row )
11
Q
What is a foreign key ?
A
- An attribute whose values match primary key values in the related table
12
Q
What is secondary key?
A
- Key used strictly for data retrieval purposes
13
Q
What is candidate key?
A
- Any column or a combination of columns that can qualify as unique key in database
14
Q
What is referential integrity?
A
- Foreign Keys contains a value that refers to an existing valid tuple ( row ) in another relation
- IT ensures that relationships between tables in a relational database remain consistent. It focuses on maintaining valid connections between primary keys (PK) and foreign keys (FK)
15
Q
Can we insert multiple candidate key ?
A
- Yes , it can also qualify as primary key