
Learn the basics of SQL using Microsoft SQL Server 2012, covering select statements, where clause, order by, normalization, joins, group by and having, with practice problems and supporting documents.
Feel free to review this PDF or watch the next two video lectures that walk you through how to install SQL Server Express and configure the AdventureWorks database.
Learn how to download SQL Server Express, install the database engine and management tools, and load the AdventureWorks sample database using the included MDF file.
Learn to attach the AdventureWorks2012 database to your SQL Server by copying the .MDF file to the data folder, removing the log row, and attaching via SQL Server Management Studio.
Learn to use SQL Server Management Studio to connect to a server instance, explore databases, understand schemas, and recognize tables as organized data in rows and columns.
Master literal select statements and run your first queries in AdventureWorks 2012 using management studio, returning strings with single quotes and creating multiple columns.
Learn how literal select statements evaluate mathematical expressions in SQL Server, applying the order of operations with parentheses, multiplication, addition, and subtraction, while noting division is postponed.
Master basic select statements by listing columns from the from clause, using the Person.Person table in AdventureWorks2012, and applying top and percent to limit results.
Master basic select techniques by using select star to view all columns, applying top to limit rows, and defining readable column aliases with brackets or quotes.
Query views as virtual tables to retrieve consolidated data easily, then practice selecting specific columns from views like human resources.v employee and sales.v individual customer.
Use the where clause to filter rows by column values, applying operators like greater than, less than, equal to, and not equal, with practical examples.
Use where clause to filter rows with equals and not equals, filter birthdates with greater than or equal to and less than, and note case-insensitive matching on the HumanResources.vEmployee view.
In this lesson, you will learn how to use the AND and OR logical operators to combine criteria within your WHERE clause.
Master building complex where clauses with and and or operators, and learn how parentheses affect evaluation order in SQL queries. Explore predicate logic and truth tables to verify results.
Explore how SQL evaluates boolean expressions in where clauses by using parentheses to control and/or precedence, with examples using ListPrice, Color, and StandardCost.
Master the in and between operators and like wildcards to filter data in HumanResources.vEmployee and Sales.vStoreWithDemographics, using percent and underscore for flexible name and sales range queries.
Master the where clause in SQL with wildcards, brackets, and ranges to filter data, and learn is null versus is not null for null values, using and or.
Master how to order results with ORDER BY using column names, ordinals, or aliases, choose ASC or DESC, and note aliases work there but not in where.
Learn to order results with the order by clause using last name, column ordinals, and aliases in ascending or descending order, and sort ties with multiple columns, with where clauses.
Apply inner joins as intersections of tables to return columns in a single query. Use table aliases and join on product subcategory IDs to show product name and subcategory name.
Expand your understanding of inner joins by matching production.product with production.productSubcategory to reveal subcategory names and linking to production.productCategory for category names.
Left and right outer joins are essentially the same, differing only by order, and the product–subcategory example shows how left outer join returns all left rows with nulls for nonmatches.
Learn to use left outer joins and inner joins to combine sales order data with salesperson, employee, and territory names, showing totals even when a salesperson is missing.
Learn to build a complete sql statement using from, inner and left outer joins, where, and order by, filtering the northwest territory and ordering by total due with table aliases.
Explore aggregate functions—max, min, count, count distinct, avg, and sum—that return a scalar value, and apply them with group by and having using real examples from Sales.SalesOrderHeader and Person.Person.
Explore SQL aggregate functions, including standard deviation and variance, and sum with a 2006 order date filter. Learn to avoid summing non-numeric values and prep for group by and having.
Group by clause groups values to answer questions like sales by salesperson or stock by product. Use aggregate functions with group by, ensuring all selected columns are grouped or aggregated.
Group by multiple columns to compute total sales by territory and salesperson for 2006, then replace ids with names via joins and optionally show full names.
Explore how the having clause filters groups by aggregate functions, unlike the where clause, with examples like sum(total due) greater than 4 million and subcategories with at least 15 products.
Learn how the having clause filters groups by aggregates, using department employee counts and sales totals to illustrate grouping, count, sum, and conditional operators like between and in.
Do you want to learn a skill that can help you earn nearly $100,000 per year? If so, then this course is for you!
SQL (Structured Query Language) is the language we use to interact with databases that store data. This allows us to retrieve data with ease and simplicity. As terms like business intelligence and big data become more familiar, businesses will need more people to learn the SQL language.
This course will teach you how to use the SQL language within Microsoft SQL Server, one of the most popular database engines in the world.
You will have plenty of video lessons to teach you the majority of the content. Each section includes practice problems or additional e-books to help reinforce what you learn in the video tutorials.