
Explore selecting data from multiple tables, filtering and aggregating data with built-in functions and set operations in SQL Server, using a prepared four-table database for hands-on practice.
Restore a database from the provided backup file in the resource folder by using restore, configure the device, overwrite an existing database, and load the four sample tables.
Begin this section after completing your SQL Server setup to explore key data selection features in SQL.
Learn how inner joins in SQL Server fetch only matching records, illustrated by joining students with their courses using on student_id, showing how multiple courses appear for the same student.
Master SQL aliases to rename columns and tables, generate a full name by concatenating first, middle, and last names, and simplify inner joins with short aliases.
Describe right outer join in SQL, returning all records from right table with matching left table data when available, and including nonmatching right side rows, illustrated using students and courses.
Learn how left outer joins in SQL Server return all records from the left table while displaying matching course records and showing nulls for students without a course.
Explore how a full outer join returns all matching and non-matching records from both tables, contrasting left and right joins, with a student and course example.
Explore subqueries as an option to retrieve related data from multiple tables, comparing inner joins with subqueries to map gender ids to their names and aliasing results for clarity.
Explore how to implement case statements in SQL to map gender id to names like male, female, unknown, and categorize records by birth date using conditional logic.
Learn the different options for filtering data using SQL syntax as you continue the course on filtering data from multiple tables.
Learn to use the top keyword to select the top N records, optionally limit columns, and apply order by to sort by birth dates for the youngest results.
Learn how to apply the distinct keyword to remove duplicates from a dataset by selecting gender id and executing a query.
Learn to use in and not in to filter data by multiple IDs in SQL, replacing long or conditions and handling include or exclude lists such as a blacklist.
Explore how to filter with null and not null using inner and outer joins to identify students with or without courses, and learn is null and is not null semantics.
Learn to use the like keyword in SQL statements to filter string data, including starts with and ends with patterns for names and emails.
Learn how to filter data using between and not between in SQL. Use ranges like student IDs from 4 to 12 to see the same results, and understand readability.
Learn how to aggregate data in SQL using built-in functions as we move from filtering to aggregation in this SQL for beginners course.
Learn how to use the group by clause in SQL Server to group data by gender ID and count students, enabling simple aggregation and summaries.
Explore using the count function to tally records after grouping data by gender. Display counts for male, female, rather not say, and unknown, with aliases for clarity.
Use the sum function, an SQL aggregate, with inner joins across student, student_course, and course tables to group by student and total their credit hours while showing full names.
Learn how to apply min and max in SQL Server to extract extreme values from an aggregate result set, such as finding the youngest or oldest birth date.
Demonstrate using the having clause to filter after a group by. Apply inner joins on student, student_course, and course to sum credits greater than five.
Learn SQL options for site operations, including merging two datasets, filtering one dataset from another, and finding the intersection of sets using SQL.
Learn how to merge two SQL result sets with union and union all, compare duplicates handling, and apply these concepts using student data examples in SQL Server.
Use the intersect keyword to compute the intersection of two SQL result sets, revealing records present in both and contrasting with union and union all behavior.
Celebrate completing the sql for beginners course on Microsoft sql server. Keep practicing the lessons to solidify concepts and maximize your time and effort.
This course will teach you many SQL options to select, filter, and aggregate data. We also see some set operation features.
This course is designed for people who have basic database knowledge and some experience working with some kind of relational database tool. It can be on SQL Server, MySQL, PostgreSQL or Oracle. I strongly believe in short and simple courses that can get you ready in few hours as opposed to days and that's why I made sure this course to be less or equal to 2hrs.
We will not cover basic database operations like insert, update, delete and select data.
This course requires:
Basic computer skill
Basic understanding of database concepts
Who this course is for:
Developers who want to advance their SQL skill
IT Student who wants to have practical experience
People who are changing career to database development/administration
Who is teaching this course:
My name is Bereket Wolde and I started working database development for more than 15 years. I am also a certified SQL Server developer.
However, if you ever get stuck or need something that I don't cover in this course then feel free to reach out to me or add a comment on the course we will reach out to you at the earliest.
Join me today and I'll see you inside!