
Download and install Microsoft SQL Server using free editions like Express or Developer, then install SQL Server Management Studio to connect via your instance name and host name.
Identify your host name and server name using the SQL Server Configuration Manager. Then connect to the local SQL Server in SQL Server Management Studio using Windows authentication.
Study downloadable resources including an entity relationship diagram with 11 tables (authors, titles, publishers, sales), a data dictionary, and a function list to tackle 25 beginner SQL questions.
Learn to count unique title IDs in the title author table, understand composite primary keys, and use group by and order by to rank titles by author count.
Practice joining authors and title_author to fetch three authors' first and last names for a given title, assess ownership by author, and add the book price from the titles table.
Practice summing values and calculating averages using year-to-date cells, convert null sums to zero, and order results by the sum while analyzing the average by title type.
Learn to compute minimum and maximum year-to-date sales by title types, count titles, and apply a having clause to show groups with more than two titles, using group by.
Extract distinct states from the authors table, count cities by state with group by, and filter with where in for California, Utah, and Oregon.
Explore using a case statement to map states to regions and add a region column, then group by that region to count cities and active authors by contract.
Explore SQL querying techniques on the publishers table using like and wildcards to find titles starting with the 'the', notes containing 'computer', and titles not of type 'business'.
Use the concatenate function to create full names, join authors with the title author table, and count ids; filter California authors with multiple books using having and order by count.
Learn to count titles published between may 1, 2021 and august 31, 2021 using between and where, with a case statement and date name approach.
Learn to find titles with a single author by joining titles to title_author, counting author_id, or using royalty_type = 100, then filter by an expired contract in authors.
Insert data into the stores table using column lists and values. Update a store name and delete a row, using select to verify changes.
Create the audiobooks table with its columns, insert data, join with the titles table to locate the title with an audio book, then drop the table.
Learn to identify which titles exist in the titles table but not in the sales table using a subquery in the where clause, and explore why unpublished titles lack sales.
Join publishers with employees, count employees per publisher, group by publisher name, and order by count descending; then compute the average job level excluding California and New York.
Learn how to update data in the authors table and verify changes with select statements, then apply a self join to identify four authors sharing two addresses.
Learn to compute the number of books needed to recoup an author's advance using the advance and price columns, while formatting results with currency and comma separators.
Walk through building a query to compute quantity sold and a break-even flag using inner and left joins, grouping, and a case statement across 18 titles.
Walks through inserting a new employee into the employee table, deriving job level from the jobs table and publisher id from the publishers table, then deleting the record to revert.
This video explains question 24: add a gender column to the employee table, update it from the last ID character to male or female, then drop the column.
Learning SQL can be a challenge. And if you’re like me then you want to learn in an environment that allows you to learn by doing. In fact, I believe this is the best way to learn. Many academic studies have shown that retention and learning is significantly increased by attempting, trying, and even failing. The structure of this course challenges you while giving you the support you need to learn.
This course literally includes 25 Practice SQL Questions! In fact, majority of questions include multiple parts. Including those multiple parts students get access to 80 practice questions. This gives individuals ample opportunity to learn. Whether you’re preparing for an interviewing, refreshing on SQL concepts, or just wanting to learn this course will help you.
The instructional level is listed as “Beginner Level.” However, those taking this course do need to have some understanding of SQL. This course is not an introductory course. You will learn by attempting the question, using a hint if needed, then watching the video explanation. Video explanations are provided to show students how to answer the question; however, each question has multiple answers. The instructor simply shows students how he would answer the question.
Microsoft SQL Server Management Studio (SSMS) will be the database management system used in the course. All the questions in the course are answered using the Microsoft Sample database, Pubs. The syntax used in SSMS is T-SQL. T-SQL is similar to syntax used in MySQL, PostgreSQL, Oracle, Snowflake, MariaDB, etc., however, Microsoft SQL Server will be needed to load the Pubs database.
List of commands used in course questions:
Select, From, Select Top, Where, Order by, Group by, Count, Inner Join, Distinct, Having, Sum, Avg, Min, Max, Create Table, Drop Table, Insert Into, And/Or, In/Not In, Between/Not Between, Like/Not Like, Case When, Concatenation, Format, Isnull, Alter Table, Update, DateName, Delete Row, Drop Column, Left/Right, Left Join, Inner Query (Subquery), Self Join