
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Learn database basics by installing Microsoft SQL Server developer edition, using SSMS shortcuts, creating a sample CIA database, writing SQL, and applying comments, drag-and-drop, and context switching.
Here are the CIA-Factbook Database setup scripts used in this course. We will cover how to set up the database in Section 1 - Lecture 7
Explore the SQL Server Management Studio environment, create a secure user, connect via localhost, navigate databases and server objects, and use shortcuts to run and debug queries.
Learn to create a sample database in SQL Server, configure data files, switch context with use, and load a CIA Factbook dataset to explore tables and top 1000 rows.
Explore the basic select clause in SQL, showing how to select numbers, strings, and date literals, alias columns with AS, and run queries in SQL Server Management Studio.
Explore SQL Server exercises: identify top ten lakes by area, ensure unique river names, compute (4+5)*6, and display all airport table columns ordered by state.
Explore using comparison operators in a where clause, including greater than and not equal to, with literals and an example filtering elevations to illustrate the concept.
Learn to write subqueries with group by to summarize data and use a where clause to filter with a subselect, revealing the religion with the maximum followers per country.
Solve SQL exercise solutions by identifying the country with the smallest GDP, calculating city population growth using CTEs and window functions, and ranking top five countries by lake area.
Create and manage SQL tables with constraints, data types, and identity columns in MS SQL Server. Learn data security, primary keys, and practical table design using SSMS.
Create a many-to-many relationship between students and courses with a third table, define primary and foreign keys, apply optional cascade, and generate an entity-relationship diagram.
Master granting, revoking, and denying permissions in SQL Server across server and database levels. Create logins and users, assign roles, and use views to protect sensitive data while controlling access.
Explore inner joins and other join types like right and cross join, and learn to implement them in queries and where clauses. Cover union, intersect, and except operations.
Learn how full outer join combines left and right joins and how cross join produces a Cartesian product, with practical notes on when to use or avoid them for performance.
Learn to use subqueries in the from clause and join tables with a where clause, including left and inner joins, to combine country and mountain data in MS SQL Server.
Create user defined functions in SQL Server, including scalar and table-valued types, defining parameters and returns, and applying a function to convert Celsius to Fahrenheit in queries.
Learn how to create stored procedures in SQL Server, including defining input and output parameters, returning data, and handling errors with try-catch, while using temporary tables to encapsulate operations.
Use Excel as a reporting tool to fetch data from SQL Server, run a SQL script, load sample CIA factbook data, and refresh the report to reflect changes.
This course will give you hands-on learning of SQL using Microsoft SQL Server. The course will teach you how you could download a free copy of SQL Server 2017 Edition from Microsoft website and set up your working environment. It will teach you various objects in SQL Server including tables, views, stored procedures. After providing you a basic structure of a SQL query structure, it will show different SQL clauses in a way that will make more sense for students to follow. It will give you a basic understanding of how you can manage your data and protect it. The course will show you how you can be able to query data, sort, restrict the output and build sub-queries. You will also understand how you can manipulate data insert, delete and update works. The course will teach how you can group and summarize your data. The course will briefly touch some advanced concepts and how you can be able to build reports using Excel, SQL Server Reporting Service, and Tableau. Finally, the course will show you can get help when while working as a SQL developer and some career advice to work as a SQL developer or analyst.