Basic to Advanced SQL Queries which provides the foundation to implement the complex queries.
Have used PostgreSQL as a DB server and the PGAMDIN4 tool for querying. List of topics covered in this SQL scripts,
- DATABASE Basics
- SQL Basic Queries (Filtering data, Grouping data, Filtering Operations)
- Functions (String Func in SELECT Clause)
- Aggregate Functions
- Computing Aggregates and filtering aggregate data (HAVING)
- Sub Queries (inside SELECT, WHERE, FROM Clause)
- Conditional Expressions
- CASE Clause
- Transposing data using CASE Clause for report extraction
- Correlated SubQueries
- JOINS
- UNION/UNION ALL/EXCEPT
- Cartesian Product using CROSS JOIN
- Creating Views
- Hard Views vs Inline Views
- Windows Functions for data analytics