Introduction To ICT - Week 11
Introduction To ICT - Week 11
Information Systems
12-2
Database Management
Systems
12-4
The Relational Model
12-7
How RDMS Works
Before creating these tables, the RDBMS must check the following constraints:
• Primary keys -- this identifies each row in the table. One table can only
contain one primary key. The key must be unique and without null values.
• Foreign keys -- this is used to link two tables. The foreign key is kept in one
table and refers to the primary key associated with another table.
• Not null -- this ensures that every column does not have a null value, such
as an empty cell.
• Check -- this confirms that each entry in a column or row satisfies a precise
condition and that every column holds unique data.
• Data integrity -- the integrity of the data must be confirmed before the data
is created.
12-9
Relationships
12-10
Relationships
12-11
Structured Query Language
12-12
Structured Query Language
12-13
Components of SQL
12-14
What Can SQL do?
12-15
What Can SQL do?
12-16
What Can SQL do?
12-17
SQL Commands
12-18
The SQL SELECT Statement
12-19
The SQL SELECT Statement
12-20
The SQL SELECT Statement
12-21
The SQL SELECT Statement
12-25
SQL ‘=‘
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
Table: Products
12-39
Modifying Database Content
12-40
Table Creation
12-42
Database Design
12-43