Database system Flashcards
SQL + sublanguages
Structured Query Language
- DML - Read and change stored data
- DDL - write and change data schema
- TCL- controlling and monitoring DML commands
- DCL - manages access rights
Database over simple files
- Specific and easy-to-use functions
- Optimized for efficiency
- Simultaneous access
- Support fine-grained access protection
- Consistent state can normally be restored
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