What are subtypes/sublanguages of SQL?
What is DDL? What are the keywords?
- The keywords are CREATE, ALTER, DROP, TRUNCATE
What is DML? What are the keywords?
- The keywords are INSERT, UPDATE, DELETE
What is DCL? What are the keywords?
- The keywords are GRANT and REVOKE
What is DQL? What are the keywords?
- The keyword with DQL is SELECT
What is TCL? What are the keywords?
- The keywords are COMMIT, ROLLBACK, SAVEPOINT
What is a Constraint? Give a few examples.
Most used constraints include:
What are the different relationships in SQL?
What are the different types of Joins?
What are the set operators?
Set operators combine the results of two component queries into a single result.
Queries containing set operators are called compound queries.
What are the Transaction Properties? (ACID)
What is Atomicity?
What is Consistency?
What is Isolation?
One transaction has
nothing to do with any of the others.
What is Durability?
What are the different Isolation Levels? What anomalies does each allow?
What is a Dirty Read?
A transaction anomaly that occurs when a transaction is allowed to read data from a row that has been modified by another running transaction that has not been committed yet.
What is a Non-Repeatable Read?
What is a Phantom Read?
What is 1NF?
What is 2NF?
To be in 2NF a relation must have all of it is attributes dependent on the relations
primary key.
What is 3NF?
What is Transitive Dependency?
What is an Aggregate Function?
EX: count()