IT  🢒  Data and SQL

SQL Intermediate to Advanced

Further your understanding of SQL, improve your skills and expand your knowledge.
  • Intermediate
  • Online Classes
  • Total 12 hours in class
  • SQL Intermediate to Advanced
  • Multi-Day Course
  • 2-8 learners per class

Requirements

You should have a prior understanding of SQL to attend this course. Our Introduction to SQL training course covers all of the prerequisites for this Intermediate to Advanced SQL course.

Class Details

This course is designed to further your understanding of structured query language (SQL) and improve your skills and expand your knowledge. Our Intermediate to Advanced SQL course builds upon the skills learnt in our Introduction to SQL course. It covers windowing, CTEs, dynamic SQL, logical functions, control flow, creating user-defined functions, stored procedures and cursors. You'll also learn how to improve query performance, transaction processing and error handling.

Course Outline

  1. Setting Up a SQL Server Environment
    • Setting up Databases
    • IF an object EXISTS
  2. Built-In Functions
    • Introduction to Built-In Functions
    • Using System Functions
    • Conversion Functions - CAST and CONVERT
    • Using Mathematical functions
    • Using String Functions
  3. Date and Time Functions
    • GETDATE
    • DATEADD
    • DATEDIFF
    • DATENAME
    • DATEPART
    • DAY, MONTH and YEAR
    • Using CONVERT to format a date/time
  4. Subqueries
    • Introduction of Subqueries
    • Subqueries vs Joining Tables
    • Subqueries with Comparison Operators
    • Subqueries with IN and NOT IN Operators
    • Subqueries with EXISTS and NOT EXISTS
  5. Multi-Table Queries
    • Joining Tables
    • INNER JOIN
    • INNER JOIN with more than two Tables
    • OUTER JOIN
    • CROSS JOIN
    • SELF JOIN
  6. Aggregate Functions and Group by Extensions
    • GROUP BY CUBE and ROLLUP
    • Using CASE with aggregate functions
    • Using PIVOT operator
  7. Windowing
    • Ranking Functions
    • ROW_NUMBER
    • RANK and DENSE_RANK
  8. Common Table Expressions (CTE)
    • Introduction to CTE
    • Non-Recursive CTE
    • Recursive CTE
    • When to use CTEs, and When not to
  9. Dynamic SQL
    • Introduction to Dynamic SQL
    • Using sp_executesql
    • Using Output parameters with sp_executesql
    • Temp tables in Dynamic SQL
  10. Temporary Tables and Table Variables
    • Using temporary tables
    • Creating table variables
  11. Logical Functions
    • Using IIF Function
    • Using CHOOSE
    • Using GREATEST and LEAST
    • Using CASE
  12. Local & Global variables
    • Introduction to variables
    • Variable data types
    • Local variables
    • Using Global variables
  13. Control of Flow
    • IF...ELSE
    • BEGIN...END
    • Using WHILE loops
  14. User-Defined Functions - UDFs
    • Introduction to UDFs
    • Creating a Scalar-Valued Function
    • Creating an Inline Table-Valued Function
  15. Stored Procedures
    • Introduction to Stored Procedures
    • Creating User Stored Procedures
    • Stored Procedure with Parameters
  16. Transaction Processing
    • Introduction to Transaction Processing
    • Working with BEGIN TRANSACTION
    • Working with COMMIT & ROLLBACK
    • Using the TRANCOUNT Global Variable
  17. Query Performance
    • Improving query performance
    • Clustered Indexes
    • Non-Clustered Index

Tutors

user

Younus Kazi

A professional Online and Classroom Teacher

Younus has over 18 years experiences in working and teaching IT in both public and private organisations. His specialities include Web design, deve...
View More...

user

Jayan Karmacharya

An experienced programmer and online Educator

Jayan is an Experienced Web Developer and IT tutor with over 10 years of experience in Server side programming, front-end development, database des...
View More...

Shares

Subscribe to our newsletter

Sign up for our newsletter, so you can be the first to find out the latest news and tips about our classes, as well as general updates throughout the year.