
Explore how to create databases using a user interface and transact-SQL, and organize data with data and log files, file groups, and auto growth considerations.
Learn to create and modify tables in a relational database using DDL, including create table, alter table, and drop table, with primary key, not null, default, and check constraints.
Create a database with Transact-SQL in SQL Server Management Studio, define the primary data file, log file, file groups, and autogrowth settings, and adjust file attributes as needed.
Explore the overview of SQL datatypes, including exact and approximate numerics, dates and times, character and Unicode strings, and binary data, and learn storage considerations for efficient table design.
Insert, update, and delete data using basic DML with column lists, constraints, defaults, and nulls; compare delete with truncate and run batch inserts for multiple rows.
Explore schema as a logical grouping and container for database objects, learn how to create, move, and secure them, and use synonyms to reference objects across schemas.
Explore the fundamentals of T-SQL select statements for a single table, including aliases, expressions, order by, top, and predicates with set operators like union, intersect, and except.
Master how to write simple select queries, apply aliases, and use expressions, including arithmetic, string concatenation, and cast, to fetch, filter, and format data from a single table.
Sort data with the order by clause, choosing ascending or descending order, and sort by multiple columns or column positions to produce deterministic results.
Learn how to filter data with predicates using relational and logical operators, including between, in, like, not, and subqueries, to query employees by department, salary, and job.
This course provides a clear and structured introduction to Microsoft Transact-SQL (T-SQL), designed to help learners build a strong foundation in querying and managing data using SQL Server. It is aligned with the DP-080: Querying Data with Microsoft Transact-SQL learning objectives and focuses on practical, real-world database querying skills.
You will begin by learning how to create databases and tables, including using T-SQL statements to create, alter, and drop database objects. The course then introduces data types, helping you understand how data is stored and managed in SQL Server.
As the course progresses, you will work with basic Data Manipulation Language (DML) commands to insert, update, delete, and retrieve data. You will learn how to organize database objects using schemas and synonyms, followed by a deep dive into SELECT queries, which form the core of data querying in T-SQL.
The course covers essential querying techniques such as sorting data, filtering records using predicates, and limiting result sets using TOP, OFFSET, and FETCH. You will also learn how SQL Server handles NULL and unknown values, how to use CASE expressions for conditional logic, and how to combine result sets using set operations.
Each topic is explained through focused video lessons, making complex SQL concepts easy to understand. Practice tests are included to help you assess your understanding and reinforce key concepts. By the end of this course, you will be confident in writing T-SQL queries to retrieve and analyze data effectively.