SQL Overview
The Foundation Statements of T-SQL
- Started with SELECT Statement
Adding Data with the INSERT Statement
SQL Data Types
- Basic Commands
- Create Statement
- Create Database
- Create Table
- Alter Statement
- Alter Database
- Alter Table
- Drop Statement
- Delete Statement
- Update Statement
SQL Operators
- Arithmetic Operators
- Comparison Operators
- Logical Operators
NORMALIZATION
JOINS
- INNER Join
- LEFT Join
- RIGHT Join
- FULL Join
- SELF Join
- CARTESIAN Join
SQL Constraints
- PRIMARY KEY Constraints
- FOREIGN KEY Constraints
- UNIQUE Constraints
- CHECK Constraints
- DEFAULT Constraints
- NULL Constraints
SQL Clauses
- WHERE Clause
- ORDER BY Clause
- GROUP BY Clause
- HAVING Clause
- TOP Clause
- LIKE Clause
- UNION Clause
- UNION ALL Clause
Adding More to Our Queries
- What Is a Sub-Query?
- Building a Nested Sub-Query
- Correlated Sub-Queries
- How Correlated Sub-Queries Work Correlated Sub-Queries in the WHERE Clause
The EXISTS Operator
- Using EXISTS in Other Ways
System Defined Functions:
MIN
- SUM
- SQRT
- RAND
- CONCAT
- GROUP BY
- HAVING
- TRIM
- LENGTH
- UPPER
- LOWER
- REPLACE
- REVERSE
- SUBSTRING
- STUFF
- DATEADD(day,10,@date)
- DATEDIFF (day,exp1,exp2)
- DATEPART(day,exp)
- GETDATE
- CONVERT
- FORMAT
- ISNULL
- Top
UDF (USER DEFINED FUNCTIONS)
- Scalar Functions
- Table-valued Functions
UNDERSTANDING INDEXES
- How Data Is Accessed in SQL Server
- Creating, Altering, and Dropping Indexes
- The CREATE INDEX Statement
VIEWS
- Simple Views
- Views as Filters
- More Complex Views
- Dropping Views
STORED PROCEDURES
- Basic Syntax
- Changing Stored Procedures with ALTER
Dropping Stored Procedures
Window Function
- Row Over
- Dense rank
- Partition by
USING Sequences
- Auto Increment (Identity Field)
Triggers
- Auto Generated Tables (INSERTED / DELETED)
End to End case Study