A database is one or more files used to store data in a structured way. A database contains one or more tables. Each table has a unique name and contains data about one type of entity.
Relational DBMS
Examples
| Last Name | First Name | Years of Service | Department | Location | Region | Course1 | Course2 | Course3 |
|---|---|---|---|---|---|---|---|---|
| de Jong | Daan | 12 | Sales | Utrecht | 030 | Office 365 | MySQL | HTML & CSS |
| Jansen | Sanne | 6 | Administration | Amsterdam | 020 | Office 365 | ||
| de Vries | Sanne | 3 | HRM | Amsterdam | 002 | HTML & CSS | Photoshop | |
| van de Berg | Tim | 21 | Purchasing | Maarssen | 030 | Indesign | WordPress | |
| van Dijk | Julia | 1 | HRM | Amsterdam | 020 | |||
| de Vries | Sem | 0 | ICT | Utreg | 030 | Dreamweaver | SQL | PHP |
| de Jong | Daan | 0 | Sales | Utrecht | 030 | Sales 1 | ||
| Smith | Jan | 8 | Sales | Utr. | 030 | Sales 1 | Sales 2 | |
| Schilder | Annie | 33 | Administration | Amsterdam | 020 | Photoshop | Office 365 |
| Last Name | First Name | Years of Service | Department | location | Region | Course1 | Course2 | Course3 |
|---|---|---|---|---|---|---|---|---|
| de Jong | Daan | 12 | Sales | Utrecht | 030 | Office 365 | MYSQL | HTML & CSS |
| Jansen | Sanne | 6 | Administration | Amsterdam | 020 | Office 365 | ||
| de Vries | Sanne | 3 | HRM | Amsterdam | 002 | HTML & CSS | Photoshop | |
| van de Berg | Tim | 21 | Purchasing | Maarssen | 030 | Indesign | WordPress | |
| van Dijk | Julia | 1 | HRM | Amsterdam | 020 | |||
| de Vries | Sem | 5 | ICT | Utreg | 030 | Dreamweaver | SQL | PHP |
| de Jong | Daan | 0 | Sales | Utrecht | 030 | Sales 1 | ||
| Smith | Jan | 8 | Sales | Utr. | 030 | Sales 1 | Sales 2 | |
| Schilder | Annie | 33 | Administration | Amsterdam | 020 | Photoshop | Office 365 |
Goals:
Steps:
One problem with repeating groups is that, when creating a table,
you do not know in advance how many fields you will need (course1, course2, course3, ...).
Data that does not depend on the whole primary key leads to redundancy and inconsistency.
(course_name)
Data that depends on the primary key through another non-key field has a transitive dependency and also leads to redundancy.
(branch, job role)
More about normalisation Wiki
| Term | Description |
|---|---|
| Database | A container for organised data in one or more tables |
| Table | A structured object in a database representing a group of entities |
| Row | A row of data about a specific entity in a table |
| Column | A data field in a table representing a specific property of entities |
| Data Type | Specifies the kind of data a column can contain |
| Primary Key (PK) | One or more columns with unique values used to identify records |
| Foreign Key (FK) | A column that refers to the primary key in another table |
More data types at W3Schools