Introduction to SQL and Syntax
What is SQL?
SQL stands for Structured Query Language.
is a standard programming language for accessing databases.
What can SQL do?
execute, retrieve , insert , update, delete, create, set permission.
Types of SQL Commands/Syntax
Data retrieval is a language used to allow users select records from the database
DML is a language that enables users to access or manipulate data as organized by the appropriate data model.
DDL is a language used to allow users to define the database and its objects.
TC includes SQL transactions used to control transactions.
DCL is a language that provides users with privilege commands
Constraints
Joins
Sorting and Filtering Data
Filtering
Use of WHERE clause
The use of LIKE, IN, EXISTS, BETWEEN, ANY, SOME, and ALL comparison conditions
Logical condition precedence: (), NOT, AND, OR
NULL values and sorting
Sorting
Use of ORDER BY clause
Sorting results in ascending and descending order
Sorting by Multiple Columns
Sorting by one column, then another 2. Understanding the order of sorting columns
Grouping and Aggregating Data (GROUP BY, HAVING)
Indexes
Naming Conventions