Normalization
Normalization is a database design technique that reduces data redundancy and eliminates undesirable characteristics like Insertion, Update and Deletion Anomalies. Normalization rules divides larger tables into smaller tables and links them using relationships. The purpose of Normalisation in SQL is to eliminate redundant (repetitive) data and ensure data is stored logically.
I.e. 1NF (First Normal Form) 2NF (Second Normal Form) 3NF (Third Normal Form) BCNF (Boyce-Codd Normal Form) 4NF (Fourth Normal Form) 5NF (Fifth Normal Form) 6NF (Sixth Normal Form)
DDL commands
Data Definition Language simply deals with descriptions of the database schema and is used to create, modify and delete the structures of database objects, but not the actual data itself.
DQL commands
Data Query Language is a component of a SQL statement that allows the programmer to perform queries on the data within a schema from a database and, also, allows the programmer to impose order upon it.
Select:
used to retrieve data from the database.
DML commands
Data Manipulation Language is the component of a SQL statement that controls access to data and to the database itself, and generally deals with the manipulation of data.
DCL commands
Data Control Language includes commands which mainly deal with the rights, permissions, and other controls of the database system.
TCL commands
Resources claim there to be another category of SQL clauses that deal with transactions in the database known as Transaction Control Language.
-Set Transaction:
Specify characteristics for the transaction.
ROWID (related to Normalization)
ROWNUM (related to Normalization)
SQL functions
A function is a code snippet that can be executed on a SQL Server.
aggregate functions
joins
left join
inner join
outer join
right join
full join / full outer join
truncate vs delete
having
where
varchar vs char