Contents
- Getting started with SQL
- SELECT
- SELECT
- Using the wildcard character to select all columns in a query.
- SELECT Using Column Aliases
- Select Individual Columns
- Selecting specified number of records
- Selecting with Condition
- Selecting with CASE
- Select columns which are named after reserved keywords
- Selecting with table alias
- Selecting with more than 1 condition.
- Selecting with Aggregate functions
- Get aggregated result for row groups
- Selection with sorted Results
- Selecting without Locking the table
- Select with condition of multiple values from column
- Select distinct unique values only
- Selecting with null
- Select rows from multiple tables
- JOIN
- Example Databases and Tables
- UPDATE
- Indexes
- CREATE TABLE
- UNION, UNION ALL
- ALTER TABLE
- CASE
- CASE
- Use CASE to COUNT the number of rows in a column match a condition.
- Searched CASE in SELECT Matches a boolean expression
- CASE in a clause ORDER BY
- Shorthand CASE in SELECT
- Using CASE in UPDATE
- CASE use for NULL values ordered last
- CASE in ORDER BY clause to sort records by lowest value of 2 columns
- INSERT
- Primary Keys
- ORDER BY
- GROUP BY
- Filter results using WHERE and HAVING
- Filter results using WHERE and HAVING
- Use BETWEEN to Filter Results
- Use HAVING with Aggregate Functions
- WHERE clause with NULLNOT NULL values
- The WHERE clause only returns rows that match its criteria
- Equality
- AND and OR
- Use IN to return rows with a value contained in a list
- Use LIKE to find matching strings and substrings
- Use HAVING to check for multiple conditions in a group
- Where EXISTS
- Window Fnctions
- Common Table Expressions
- Common Table Expressions
- generating values
- recursively enumerating a subtree
- Temporary query
- recursively going up in a tree
- Recursively generate dates extended to include team rostering as example
- Oracle CONNECT BY functionality with recursive CTEs
- Refactoring a query to use Common Table Expressions
- 0Example of a complex SQL with Common Table Expression
- Views
- LIKE operator
- Functions Aggregate
- DELETE
- String Functions
- Data Types
- AND OR operators
- Triggers
- TRUNCATE
- MERGE
- Foreign Keys
- Finding Duplicates on a Column Subset with Detail
- Sequence
- Comments
- Subqueries
- Execution blocks
- Stored Procedures
- DROP Table
- Row number
- Transactions
- CREATE FUNCTION
- SQL Group by vs. Distinct
- Table Design
- CROSS APPLY and OUTER APPLY
- Synonyms
- CREATE database
- SKIP TAKE pagination
- EXPLAIN and DESCRIBE
- Information Schema
- IN clause
- NULL
- SQL Injection
- Cascading Delete
- Order of Execution
- DROP or DELETE database
- EXCEPT
- TRYCATCH
- XML
- GRANT and REVOKE
- Functions ScalarSingle Row
- Relational Algebra
- EXISTS CLAUSE
- Materialized Views
- Functions Analytic
- SQL CURSOR
- Identifier
- Clean Code in SQL
- Contributors