
Learn the fundamentals of SQL Server, databases, and tables, and install SQL Server and SSMS. Practice with AdventureWorks 2019 by importing data from Excel or CSV and running basic queries.
I am attaching here the part2 sql also. i have attached databases also , though you can too create these yourself as they are very small and easy to create.
Explore the having clause in SQL Server basics, learn how to filter aggregates with group by, compare where vs having, and apply counts to category data.
Explore the differences between over and group by in SQL Server, learn when nested aggregations are allowed, and implement cumulative totals with window functions for row and group level results.
Learn to implement iif in SQL select statements to create a new column from incentives, such as greater than 1000, using true and false parameters or a case alternative.
Learn how to use subqueries with in and not in operators to filter records from related tables, ensuring distinct, non-null territory IDs.
Master subqueries with in and not in by using a select query to filter cities by country region, showing distinct usage and the where clause.
Master the right join by selecting IDs from the right table, understanding alias usage, and comparing results with left join to handle null values.
Explore the full join to retrieve all IDs from both tables and handle nulls. Create a single ID column by choosing the first table’s ID when present, otherwise the second’s.
Explore the cross join by creating every combination between two tables, showing that it produces all pairings without an on clause and differs from lookup joins.
Explore derived tables in SQL Server by turning queries into a named table and selecting from it, while applying union all rules and data-type alignment.
Demonstrates a three-way self-join on Adventure Works 2019 data to identify managers who appear in three consecutive records, using serial number offsets.
Master SQL techniques to extract three consecutive viewer IDs with counts over 50,000 using derived tables, row_number, lead, lag, and inner joins.
Identify each player's first game date, compute cumulative games over time with window functions, and count players with consecutive play dates using lead and date difference.
Explore the differences between DML and DDL, and learn to create databases, schemas, and tables, then insert, update, delete, and drop data with practical school and hospital examples.
Learn how to perform update queries in SQL Server, including updating single tables and multi-table scenarios with joins, case expressions, and salary adjustments based on performance.
Learn to insert data into a table using insert into with or without column lists, handle text quotes and datatype checks, and insert multiple rows with examples.
Learn to import Excel data into SQL Server using SQL, and troubleshoot driver issues with ChatGPT-driven solutions in part 4.
Discover how primary keys and foreign keys enforce referential integrity in SQL Server table design, and learn how to create and relate keys in a multi-part series.
Explore how update queries behave under referential integrity with cascade on versus off, demonstrating updates on child and parent tables and the resulting auto-updates to related rows.
Master how insert queries enforce referential integrity by ensuring foreign keys exist in the parent table, and how cascade on/off and on delete set null affect related data.
Explore referential integrity and cascade behaviors in SQL Server, including insert validation, on update cascade, and on delete cascade, plus key constraints like primary key, foreign key, check, and unique.
Create two common table expressions for department names and incentives, then left join on department id to get department name and total incentive; compare with derived tables and group by.
Learn to build and validate a commutable expression to fetch recent orders from the last 30 days and identify customers who spent over 10,000, then join these results.
Discover recursive common table expressions (CTEs) to build hierarchical levels in SQL Server, part 5 of the series.
Leverage recursive common table expressions to generate a complete range of invoice numbers and identify missing ones, using anchor and union all, and filter with not in to reveal gaps.
Discover how stored procedures pack multiple SQL tasks into a single executable program you run with one line, while macros and VBA help you structure reusable code.
Learn to create a stored procedure, connect Excel with a SQL table using M code, in part 2.
Master after update triggers to log old and new values into an audit log table, using the inserted and deleted tables joined on customer id.
Create an after delete trigger on the customer data table to capture deleted rows into an audit log via the deleted table.
Explore handling duplicate emails with an instead of insert trigger using a common table expression and row_number over (partition by email) to insert only the first occurrence.
Explore implementing an instead of update trigger to log inventory updates, discard negative quantities, use inserted and deleted tables to track old and new values, and update stock when valid.
Create an after insert trigger on the customer data table to auto populate an audit log from the inserted pseudo table, capturing customer id, name, email, action type, and date.
This course is designed for beginners, working professionals, data analysts, software developers, database developers, and anyone preparing for SQL Server interviews.
Throughout the course, every concept is explained using practical examples, hands-on exercises, interview scenarios, and real-world business cases.
In This Course You Will Learn
• SQL Server Installation and Configuration
• Creating and Managing Databases
• Understanding Tables, Rows, Columns, and Data Types
• Creating Tables Using SQL Scripts
• Primary Key Constraint
• Foreign Key Constraint
• Unique Constraint
• Referential Integrity Concepts
• INSERT Statements from Basic to Advanced
• UPDATE Statements with Real-World Examples
• DELETE Statements and Data Management
• SELECT Queries and Data Retrieval
• Filtering Data Using WHERE Clause
• Sorting Data Using ORDER BY
• Aggregate Functions and Group By
• HAVING Clause
• Working with NULL Values
• String Functions
• Date Functions
• Mathematical Functions
• SQL Server Joins (INNER JOIN)
• LEFT JOIN
• RIGHT JOIN
• FULL OUTER JOIN
• SELF JOIN
• Joining Multiple Tables
• UNION and UNION ALL
• Subqueries
• Correlated Subqueries
• Common Table Expressions (CTEs)
• Views and Their Practical Usage
• Stored Procedures from Basic to Advanced
• Input Parameters
• Output Parameters
• Error Handling Using TRY...CATCH
• Dynamic SQL Concepts
• SQL Server Triggers
• AFTER Triggers
• INSTEAD OF Triggers
• Handling Duplicate Records Through Triggers
• Bulk Insert Scenarios Using Triggers
• SQL Server Indexes
• Clustered Indexes
• Non-Clustered Indexes
• Understanding Query Performance
• Query Optimization Concepts
• Execution Plan Basics
• Transactions and Data Consistency
• Interview Questions and Practical Scenarios
• Excel and SQL Server Integration
• Power Query and SQL Server Integration
• Real-World Database Development Scenarios
Course Features
• Step-by-Step Learning Approach
• Beginner to Advanced Coverage
• Practical Hands-On Examples
• Real-World Business Scenarios
• Interview-Oriented Training
• Industry Best Practices
• Detailed Explanations of Every Topic
• Exercises for Practice
• Project-Based Learning
• Suitable for Students and Working Professionals