Get a comprehensive overview of SQL, the popular programming language for storing and processing information in a relational database, in this course for data engineers.
Overview
Syllabus
Introduction
- SQL for data engineering
- What you should know
- Using Codespaces
- What is SQL and why learn it?
- Role of SQL in data engineering
- Setting up the SQL environment: Install PostgreSQL
- Walkthrough: PostgreSQL
- Introduction to databases and tables
- SQL syntax and basic queries
- Selecting and filtering data
- Sorting data with ORDER BY
- Combining conditions with AND and OR
- Challenge: Combine filter and ORDER BY
- Solution: Combine filter and ORDER BY
- Introduction to data manipulation
- Inserting data into tables
- Updating existing records
- Deleting records from tables
- Challenge: Delete records
- Solution: Delete records
- Introduction to joins
- Inner join explained
- Left and right joins explained
- Full outer joins
- Using the UNION operator
- Using the CASE statement for conditional logic
- Using GROUP BY to aggregate data
- Common aggregation functions: SUM, AVG, COUNT, etc.
- Filtering GROUP BY results with the HAVING clause
- Challenge: Joins
- Solution: Joins
- Introduction to SQL functions
- Using mathematical functions
- Working with date functions
- Working with time functions
- String functions: Concatenation and trimming
- String functions: Changing case and extracting substrings
- Challenge: Play with strings
- Solution: Play with strings
- Introduction to analytical functions
- Using the RANK() function
- Using the DENSE_RANK() function
- Exploring the ROW_NUMBER() function
- Understanding the LAG() and LEAD() functions
- Running totals with SUM() OVER()
- Calculating moving averages
- Challenge: Find out the sum
- Solution: Find out the sum
- Introduction to views
- Creating and using views
- Introduction to stored procedures
- Creating and executing stored procedures
- Challenge: Select via view
- Solution: Select via view
- Introduction to indexes
- Creating and managing indexes
- Understanding query performance
- Basic performance tuning techniques
- Challenge: Indexes
- Solution: Indexes
- Introduction to database security
- Understanding users and roles in SQL
- Creating users and assigning roles
- Granting and revoking permissions
- Using roles for permission management
- Best practices for managing roles and permissions
- Challenge: Create a role
- Solution: Create a role
- Understanding SQL syntax errors
- Logical errors in SQL
- Debugging NULL values
- Practical example: Debugging real SQL issues
- What is ETL and its importance
- ETL process flow
- Common ETL tools
- Capstone project: Insurance claims analysis
- Capstone project solution: Insurance claims analysis
- Next steps
Taught by
Deepak Goyal