Fundamentals of Databases

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 42

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

43 Terms

1
Database
They are a collection of organised information so the information can be easily accessed, processes and managed.
New cards
2
Database Management System (DBMS)
It is a software package designed to define, manipulate, retrieve and manage data in a database
New cards
3
Entity
It is one type of object.
New cards
4
Attribute
They describe the entity
New cards
5
They are also called fields or columns.
New cards
6
How is a database table organised?
In records, they can also be called rows.
New cards
7
Data Models
They define how data is connected to each other and how they are processed and stored inside the system.
New cards
8
Designed to allow easy data input.
New cards
9
Relational Database
It is a database that has been designed and structured so that the relationships among different entities are identified by shared attributes among different entities.
New cards
10
Primary Key
It is a unique identifier for a record
New cards
11
Foreign Key
It is a primary key from a different table used to define the relationship.
New cards
12
Composite Key
It is a combination of two or more attributes in a table that can be used uniquely to identify each record in the table.
New cards
13
Relationship
New cards
14
One-to-One
One entity can relate to the other entity exactly once.
New cards
15
Relationship
New cards
16
One-to-Many
One entity can relate to the other entity more than once.
New cards
17
Relationship
New cards
18
Many-to-Many
One entity can appeal multiple times in the other entity and vice versa.
New cards
19
First Normal Form (1NF)
It has no repeating attribute/field or groups of attributes.
New cards
20
It contains only atomic values.
New cards
21
Second Normal Form (2NF)
It is in the first normal form and all the *non-key attributes* are fully functional dependant on the primary key.
New cards
22
This is partially dependant on the primary key only occurs if there is a composite key.
New cards
23
Third Normal Form (3NF)
It is in second normal form and there is no non-key dependancies or no attributes depending on other attributes.
New cards
24
Database Normalisation
To reduce data redundancy.
New cards
25
To maintain data integrity.
New cards
26
Smaller tables, faster indexing, fast sorting, searching, updating.
New cards
27
No accidental deleting a record.
New cards
28
DDL (Data Definition Language)
It is a standard for commands that define the different structures in a database.
New cards
29
Statements create, modify and remove database objects like tables.
New cards
30
Inner join
New cards
31
Client-Server Database Model
It is a centralised database server dealing with many requests from different clients on different PCs
New cards
32
Advantages of using a Client-Server Database Model
Avoids data inconsistency since only one copy of the database is accessed.
New cards
33
All updates will be immediately available to all clients.
New cards
34
Avoid expensive cost of resources required to have multiple copies of a database.
New cards
35
Access rights and security can be centrally managed.
New cards
36
Disadvantages of using a Client-Server Database Model
When clients update the same record at the same time, some updates will be lost.
New cards
37
To prevent data inconsistency, a DBMS uses *record locking* mechanism - whenever a record is being updated, it is being locked until the transaction is completed or cancelled.
New cards
38
Serialisation
It is a mechanism to ensure there is not transactions overlap in time. A transaction cannot start until the previous one has finished.
New cards
39
Serialisation Techniques
New cards
40
Timestamp Ordering
A timestamp is given at the start of each transaction. For two transactions updating the same record, the transaction with the earlier timestamp will be applied first.
New cards
41
Serialisation Techniques
New cards
42
Commitment Ordering
Transactions are ordered by their dependencies on each other as well as the time they started.
New cards
43
If the transaction has dependencies on another, it it blocked until the dependent-upon transactions have finished/committed.
New cards
robot