SQL + sublanguages
Structured Query Language
Database over simple files
DBMSs
Standard database management system
Manages access and provides corresponding functions
RDBMSs
Relational database management system
For the administration of relationally organized databases
Artificial key
Additional attribute added to a relation that is used as a primary key. Artificial Key has no meaning outside of the table
Foreign Key
References a primary key of another. Has to have referential integrity
Referential integrity
A property of a database where by all foreign keys used are actually used as primary key in another table and thus a valid reference to another data record exists.
Primary Key
A key that uniquely identifies and entity is called a primary key. Simple PK is formed by exactly 1 attribute. Composite PK is formed by several attributes. PK is never a NULL value
SELECT + optional additions
Querying data from a table General structure: SELECT name FROM country; Optional additions: WHERE GROUP BY HAVING ORDER BY
Logical operators
NOT
OR
AND
comparison operators
= <> or != > or < >= or <= BETWEEN LIKE