Free Course Image SQL Server tutorial for beginners

Free online courseSQL Server tutorial for beginners

Duration of the online course: 26 hours and 59 minutes

4.57

StarStarStarStarHalf star

(51)

Build job-ready SQL Server skills fast with a free course: query data, design tables, master joins, indexes and transactions—plus a certificate option.

In this free course, learn about

  • Connect to SQL Server with SSMS; understand SSMS role and workflow
  • Create/alter/drop databases; understand MDF file purpose and storage
  • Design tables with PKs, defaults, identity, unique & check constraints
  • Enforce relationships with FK cascading; know default cascade behaviors
  • Write SELECT queries: DISTINCT, WHERE vs HAVING, GROUP BY, set ops
  • Use joins: inner/left/self, non-matching rows, APPLY; replace NULLs
  • Build stored procedures: naming, optional params, output vs return
  • Use built-in string/date/math functions; CAST/CONVERT; TRY_* functions
  • Create UDFs: scalar, inline TVF, multi-statement TVF; key differences
  • Use temp tables, indexes (clustered/nonclustered) and understand tradeoffs
  • Create views (updatable/indexed) and know limitations and use cases
  • Use triggers (DML/DDL/logon), execution order, and auditing changes
  • Use CTEs/derived tables, recursive CTEs for hierarchies; normalization, pivot
  • Handle transactions, isolation levels, deadlocks/blocking; error handling

Course Description

Strong SQL skills open doors in software development, data analysis, business intelligence, QA, and database administration. This free online course helps you go from beginner to confident SQL Server user by guiding you through the everyday tasks you will encounter when working with relational databases in real projects. You will start by getting comfortable in SQL Server Management Studio (SSMS), learning how to connect, explore objects, and work efficiently in a professional environment.

As you progress, you will build a solid foundation in database design and integrity. You will learn how to create databases and tables correctly, understand what key files represent, and use primary keys, identity columns, default values, and constraints to keep data accurate and reliable. Instead of memorizing syntax alone, you will practice thinking like a database designer, making choices that prevent duplicates, enforce rules, and protect relationships between tables.

Querying is where SQL becomes truly powerful, and the course takes you from simple SELECT statements to grouping, filtering, and combining datasets with joins and set operators. You will learn to handle NULL values safely, use string, date, and mathematical functions, and write queries that are clear, maintainable, and performant. Along the way, you will also develop an intuition for choosing between subqueries and joins based on the problem and expected workload.

Beyond the basics, you will step into features widely used in production: views, stored procedures, parameters, triggers, temporary tables, indexes, table-valued functions, common table expressions (including recursive CTEs), and techniques like PIVOT and window functions for advanced reporting. The course also addresses what many beginners miss: reliability and troubleshooting. You will learn error handling patterns, transactions and ACID concepts, isolation levels, and how concurrency issues such as dirty reads, lost updates, phantom reads, blocking, and deadlocks happen—and how to reduce them. By the end, you will be prepared to write practical SQL Server code, reason about performance, and communicate more confidently with engineering and analytics teams.

Course content

  • Video class: Connecting to SQL Server using SSMS - Part 1 09m
  • Exercise: _What is SQL Server Management Studio (SSMS)?
  • Video class: Creating altering and dropping a database - Part 2 15m
  • Exercise: What does an MDF file in SQL Server represent?
  • Video class: Creating and working with tables - Part 3 20m
  • Exercise: What is the purpose of a primary key in a database table?
  • Video class: Adding a default constraint - Part 4 10m
  • Exercise: What value will be assigned to the "gender ID" column if no value is provided when inserting a new record into the TBL person table with a default constraint set?
  • Video class: Cascading referential integrity constraint - Part 5 08m
  • Exercise: What is the default behavior of cascading referential integrity constraints in SQL Server?
  • Video class: Adding a check constraint - Part 6 11m
  • Exercise: _What is a check constraint in SQL Server?
  • Video class: Identity Column in SQL Server - Part 7 15m
  • Exercise: What is an identity column in SQL Server?
  • Video class: How to get the last generated identity column value in SQL Server - Part 8 12m
  • Exercise: Which function retrieves the last generated identity column value in the same session and scope in SQL Server?
  • Video class: Unique key constraint - Part 9 08m
  • Exercise: What is a primary difference between a unique key constraint and a primary key constraint in a table?
  • Video class: Select statement in sql server - Part 10 21m
  • Exercise: What does the DISTINCT keyword do in SQL?
  • Video class: Group by in sql server - Part 11 17m
  • Exercise: _What is the purpose of the GROUP BY clause in SQL Server?
  • Video class: Joins in sql server - Part 12 17m
  • Exercise: What is the result of an INNER JOIN in SQL Server?
  • Video class: Advanced or intelligent joins in sql server - Part 13 12m
  • Exercise: How to retrieve non-matching rows from tables using SQL joins?
  • Video class: Self join in sql server - Part 14 11m
  • Exercise: What is a self join in database management?
  • Video class: Different ways to replace NULL in sql server - Part 15 11m
  • Exercise: What function can replace NULL values in SQL Server when an employee has no manager?
  • Video class: Coalesce function in sql server Part 16 04m
  • Exercise: _What is the purpose of using the coalesce function in SQL Server?
  • Video class: Union and union all in sql server Part 17 12m
  • Exercise: What is a key difference between UNION and UNION ALL in SQL Server?
  • Video class: Stored procedures in sql server Part 18 20m
  • Exercise: What is a common naming convention for stored procedures in SQL Server?
  • Video class: Stored procedures with output parameters Part 19 18m
  • Exercise: What is the keyword used to define an output parameter in a SQL Server stored procedure?
  • Video class: Stored procedure output parameters or return values Part 20 16m
  • Exercise: What is a key difference between return values and output parameters in SQL stored procedures?
  • Video class: Advantages of stored procedures Part 21 11m
  • Exercise: _What is the greatest benefit of using stored procedures in SQL Server?
  • Video class: Built in string functions in sql server 2008 Part 22 16m
  • Video class: LEFT, RIGHT, CHARINDEX and SUBSTRING functions in sql server Part 23 14m
  • Video class: Replicate, Space, Patindex, Replace and Stuff string functions in sql server 2008 Part 24 11m
  • Video class: DateTime functions in SQL Server Part 25 15m
  • Video class: IsDate, Day, Month, Year and DateName DateTime functions in SQL Server Part 26 12m
  • Exercise: _What is the purpose of the EOMONTH function in SQL Server?
  • Video class: DatePart, DateAdd and DateDiff functions in SQL Server Part 27 21m
  • Video class: Cast and Convert functions in SQL Server Part 28 17m
  • Video class: Mathematical functions in sql server Part 29 15m
  • Video class: Scalar user defined functions in sql server Part 30 19m
  • Video class: Inline table valued functions in sql server Part 31 11m
  • Exercise: _What is the difference between a scalar function and an inline table valued function in SQL Server?
  • Video class: Multi statement table valued functions in sql server Part 32 14m
  • Video class: Important concepts related to functions in sql server Part 33 16m
  • Video class: Temporary tables in SQL Server Part 34 15m
  • Video class: Indexes in sql server Part 35 11m
  • Video class: Clustered and nonclustered indexes in sql server Part 36 16m
  • Exercise: _What is the difference between a clustered and a non-clustered index in SQL Server?
  • Video class: Unique and Non Unique Indexes in sql server Part 37 11m
  • Video class: Advantages and disadvantages of indexes in sql server Part 38 12m
  • Video class: Views in sql server Part 39 14m
  • Video class: Updatable views in sql server Part 40 11m
  • Video class: Indexed views in sql server Part 41 13m
  • Exercise: _What is an indexed view in SQL Server?
  • Video class: View limitations in sql server Part 42 10m
  • Video class: DML triggers in sql server Part 43 17m
  • Video class: After update trigger Part 44 17m
  • Video class: Instead of insert trigger Part 45 15m
  • Video class: Instead of update triggers in sql server - Part 46.avi 22m
  • Exercise: _What are the three types of triggers in SQL Server?
  • Video class: Instead of delete triggers in sql server - Part 47.avi 10m
  • Video class: Derived tables and common table expressions in sql server Part 48 17m
  • Video class: CTE in sql server Part 49 12m
  • Video class: Updatable common table expressions in sql server Part 50 15m
  • Video class: Recursive CTE in sql server Part 51 12m
  • Exercise: _What is the solution to display employee name, manager name, and level in the organization hierarchy?
  • Video class: Database normalization Part 52 12m
  • Video class: Second normal form and third normal form Part 53 13m
  • Video class: Pivot in sql server 2008 Part 54 12m
  • Video class: Error handling in sql server 2000 Part 55 24m
  • Video class: Error handling in sql server Part 56 17m
  • Exercise: _What is the recommended prerequisite for this session on handling errors in SQL Server 2005 and later versions?
  • Video class: Transactions in sql server Part 57 11m
  • Video class: Transactions in sql server and ACID Tests Part 58 09m
  • Video class: Subqueries in sql Part 59 14m
  • Video class: Correlated subquery in sql Part 60 07m
  • Video class: Creating a large table with random data for performance testing Part 61 17m
  • Video class: What to choose for performance SubQuery or Joins Part 62 12m
  • Video class: Cursors in sql server Part 63 13m
  • Video class: Replacing cursors using joins in sql server Part 64 10m
  • Video class: List all tables in a sql server database using a query Part 65 05m
  • Video class: Writing re runnable sql server scripts Part 66 10m
  • Exercise: _What is a rerunnable SQL script?
  • Video class: Alter database table columns without dropping table Part 67 04m
  • Video class: Optional parameters in sql server stored procedures Part 68 27m
  • Video class: Part 69 Merge in SQL Server 07m
  • Video class: sql server concurrent transactions 07m
  • Video class: sql server dirty read example 08m
  • Exercise: _What is a dirty read in SQL Server?
  • Video class: sql server lost update problem 08m
  • Video class: Non repeatable read example in sql server 05m
  • Video class: Phantom reads example in sql server 06m
  • Video class: Snapshot isolation level in sql server 09m
  • Video class: Read committed snapshot isolation level in sql server 06m
  • Exercise: _What is the default behavior of the read committed isolation level when a transaction is trying to read the data that another transaction is updating at the same time?
  • Video class: Difference between snapshot isolation and read committed snapshot 12m
  • Video class: SQL Server deadlock example 05m
  • Video class: SQL Server deadlock victim selection 07m
  • Video class: Logging deadlocks in sql server 04m
  • Video class: SQL Server deadlock analysis and prevention 08m
  • Exercise: _What are the three sections of deadlock information captured in the error log?
  • Video class: Capturing deadlocks in sql profiler 10m
  • Video class: SQL Server deadlock error handling 05m
  • Video class: Handling deadlocks in ado net 10m
  • Video class: Retry logic for deadlock exceptions 26m
  • Video class: How to find blocking queries in sql server 07m
  • Exercise: _What is the command used to find open transactions in SQL Server?
  • Video class: SQL Server except operator 05m
  • Video class: Difference between except and not in sql server 04m
  • Video class: Intersect operator in sql server 05m
  • Video class: Difference between union intersect and except in sql server 03m
  • Video class: Cross apply and outer apply in sql server 08m
  • Exercise: _What is the difference between an inner join and a left join in SQL Server?
  • Video class: DDL Triggers in sql server 12m
  • Video class: Server scoped ddl triggers 05m
  • Video class: sql server trigger execution order 06m
  • Video class: Audit table changes in sql server 06m
  • Video class: Logon Triggers in SQL Server 08m
  • Exercise: _What is the purpose of a logon trigger in SQL Server?
  • Video class: Select into in sql server 11m
  • Video class: Difference between where and having in sql server 06m
  • Video class: Table valued parameters in SQL Server 06m
  • Video class: Send datatable as parameter to stored procedure 09m
  • Video class: Grouping Sets in SQL Server 09m
  • Exercise: _What is the purpose of the second group by query in the tutorial?
  • Video class: Rollup in SQL Server 09m
  • Video class: Cube in SQL Server 07m
  • Video class: Difference between cube and rollup in SQL Server 05m
  • Video class: Grouping function in SQL Server 12m
  • Video class: GROUPING ID function in SQL Server 12m
  • Exercise: _What is the difference between grouping and grouping ID functions in SQL Server?
  • Video class: Debugging sql server stored procedures 15m
  • Video class: Over clause in SQL Server 09m
  • Video class: Row Number function in SQL Server 07m
  • Video class: Rank and Dense Rank in SQL Server 10m
  • Video class: Difference between rank dense rank and row number in SQL 04m
  • Exercise: _What is the main difference between the row number, rank and dense rank functions in SQL Server?
  • Video class: Calculate running total in SQL Server 2012 06m
  • Video class: NTILE function in SQL Server 05m
  • Video class: Lead and Lag functions in SQL Server 2012 07m
  • Video class: FIRST VALUE function in SQL Server 02m
  • Video class: Window functions in SQL Server 11m
  • Exercise: _What are the three arguments that define a window for vendor functions to operate on in SQL Server?
  • Video class: Difference between rows and range 05m
  • Video class: LAST VALUE function in SQL Server 05m
  • Video class: UNPIVOT in SQL Server 04m
  • Video class: Reverse PIVOT table in SQL Server 08m
  • Video class: Choose function in SQL Server 05m
  • Exercise: _What is the Choose function in SQL Server?
  • Video class: IIF function in SQL Server 04m
  • Video class: TRY PARSE function in SQL Server 2012 07m
  • Video class: TRY CONVERT function in SQL Server 2012 07m
  • Video class: EOMONTH function in SQL Server 2012 05m
  • Video class: DATEFROMPARTS function in SQL Server 03m
  • Exercise: _What is the syntax of the DATEFROMPARTS function in SQL Server 2012?
  • Video class: Difference between DateTime and SmallDateTime in SQL Server 08m
  • Video class: DateTime2FromParts function in SQL Server 2012 05m
  • Video class: Difference between DateTime and DateTime2 in SQL Server 10m
  • Video class: Offset fetch next in SQL Server 2012 09m
  • Video class: Identifying object dependencies in SQL Server 05m
  • Exercise: _What happens when we try to delete the employees table in SQL Server?
  • Video class: sys dm sql referencing entities in SQL Server 08m
  • Video class: sp depends in SQL Server 05m
  • Video class: Sequence object in SQL Server 2012 12m
  • Video class: Difference between sequence and identity in SQL Server 05m
  • Video class: Guid in SQL Server 09m
  • Exercise: _What is a grid in SQL Server and how can we create it?
  • Video class: How to check GUID is null or empty in SQL Server 06m
  • Video class: Dynamic SQL in SQL Server 12m
  • Video class: Implement search web page using ASP NET and Stored Procedure 10m
  • Video class: Implement search web page using ASP NET and Dynamic SQL 10m
  • Video class: Prevent sql injection with dynamic sql 10m
  • Exercise: _What is the danger of building dynamic SQL statements by concatenating user input values instead of using parameters?
  • Video class: Dynamic SQL in Stored Procedure 09m
  • Video class: Sql server query plan cache 14m
  • Video class: exec vs sp executesql in sql server 09m
  • Video class: Dynamic sql table name variable 11m
  • Video class: Quotename function in SQL Server 10m
  • Video class: Dynamic SQL vs Stored Procedure 06m
  • Video class: Dynamic sql output parameter 05m
  • Video class: Temp tables in dynamic sql 04m

This free course includes:

26 hours and 59 minutes of online video course

Digital certificate of course completion (Free)

Exercises to train your knowledge

100% free, from content to certificate

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses

More free courses at Databases

Free Ebook + Audiobooks! Learn by listening or reading!

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate