Loading...
A practical SQL course for anyone who needs to work with relational databases. Covers the language end to end: setting up SQL Server, creating tables and writing queries, joining and aggregating data, modifying data safely inside transactions and building reusable components with views, stored procedures, functions and triggers. The primary dialect is T-SQL (SQL Server) with PostgreSQL, MySQL and Oracle SQL/PL-SQL comparison sidebars throughout so the skills transfer. Ends with a capstone where you design and build a working database from scratch. This is Course 1 of the SQL and Database Engineering learning path. Course 2 (Database Engineering Fundamentals) goes deep on indexing, concurrency, performance and architecture.
JP Instructor
Already have an account? Sign in
What a relational database is and how it differs from NoSQL, document, graph, columnar and multi-value databases like UniVerse and the Pick family. Installing SQL Server Express, PostgreSQL, MySQL and Oracle XE. Connecting from clients, authentication modes, server-level and database-level configuration including tempdb, MAXDOP and recovery models. 5 lessons + quiz.
12 minutes
15 minutes
15 minutes
12 minutes
14 minutes
10 minutes
CREATE TABLE, numeric and string and date/time types, VARCHAR vs VARCHAR(MAX), NVARCHAR, BLOB and CLOB usage for binary and large character data, storing images in a database, primary and foreign keys and the basic constraint set. 5 lessons + quiz.
12 minutes
14 minutes
14 minutes
14 minutes
14 minutes
10 minutes
SELECT, WHERE, ORDER BY, TOP and LIMIT. NULL semantics and three-valued logic, date arithmetic with DATEADD and DATEDIFF, time zones and DATETIMEOFFSET, string functions including LIKE, PATINDEX, STRING_SPLIT and STRING_AGG. 5 lessons + quiz + coding challenges.
14 minutes
12 minutes
14 minutes
14 minutes
13 minutes
10 minutes
INNER, LEFT, RIGHT, FULL and CROSS joins. UNION, INTERSECT and EXCEPT set operations. Correlated subqueries and the EXISTS pattern, IN versus NOT IN with NULL pitfalls. 5 lessons + quiz + coding challenges.
16 minutes
12 minutes
12 minutes
14 minutes
12 minutes
10 minutes
GROUP BY and HAVING, aggregate functions, window functions including ROW_NUMBER, RANK, LAG and LEAD with framing. Common Table Expressions including recursive CTEs for hierarchies. PIVOT and UNPIVOT, JSON output with FOR JSON and OPENJSON. 6 lessons + quiz + coding challenges.
14 minutes
12 minutes
14 minutes
14 minutes
13 minutes
13 minutes
10 minutes
INSERT, UPDATE, DELETE, MERGE and the OUTPUT clause. ACID and how transactions work. When to use BEGIN TRAN and when single-statement atomicity is enough. Error handling with TRY/CATCH and XACT_ABORT, bulk operations with BULK INSERT and bcp, dynamic SQL with EXEC versus sp_executesql. 6 lessons + quiz.
14 minutes
12 minutes
13 minutes
13 minutes
13 minutes
13 minutes
10 minutes
Views and materialised views, stored procedures with parameters and return codes, user-defined functions covering scalar, inline TVF and multi-statement TVF, triggers including AFTER and INSTEAD OF, temp tables versus table variables, cursors and why set-based thinking usually wins. 6 lessons + quiz.
13 minutes
14 minutes
14 minutes
13 minutes
12 minutes
12 minutes
10 minutes
End-to-end project. Pick a business scenario (library, e-commerce or gym), design and build a schema with constraints and seed data, write the queries to answer real business questions, build views and stored procedures for the application layer, add a trigger for audit logging, and write a one-page design decisions reflection. 6-step PROJECT capstone.
300 minutes
Join thousands of students mastering SQL with HardCoded
Sign Up to Get Started