Skip to content
KnowledgeCity

Database Foundations: Querying Databases

Learn the fundamentals of T-SQL and database querying to effectively manipulate and retrieve data
Preview the first lesson free — get full access to all 4 lessons.
Course: On-Demand
Beginner Provider Rodney Harris  4 Lessons ·  22m  in English 

Course Description

In this course on Database Foundations: Querying Databases, you will dive into the world of T-SQL and learn how to effectively query databases. The course begins with an introduction to T-SQL and the two main categories of SQL statements: DDL and DML. You will learn about the differences between DDL and DML and explore examples of how they are used. Next, you will learn about SQL commands for filtering and sorting data. The WHERE clause in the SELECT statement allows you to filter data based on specific conditions, while the ORDER BY clause helps you sort the data in a desired order. You will explore various examples of using the WHERE and ORDER BY clauses to retrieve and arrange data according to your requirements. The course also covers the GROUP BY clause, which is used to group rows based on one or more columns. You will learn how to use aggregate functions like COUNT, SUM, and AVG to calculate values within each group. Additionally, the HAVING clause will be introduced, which allows you to filter the grouped results based on specific conditions. By the end of this course, you will have a strong foundation in querying databases using T-SQL. You will be able to write effective SELECT statements with filtering and sorting, understand the importance of DDL and DML statements, and apply your knowledge to manipulate data in a database.

What You'll Learn

  • Query databases effectively using T-SQL
  • Distinguish between DDL and DML statements and how each is used
  • Apply the WHERE clause to filter data based on specific conditions
  • Sort query results using the ORDER BY clause
  • Group rows with the GROUP BY clause and apply aggregate functions like COUNT, SUM, and AVG
  • Filter grouped results using the HAVING clause

Key Takeaways

  • T-SQL statements fall into two main categories: DDL and DML.
  • The WHERE clause in a SELECT statement filters data based on specific conditions, while the ORDER BY clause sorts data in a desired order.
  • The GROUP BY clause groups rows based on one or more columns, and aggregate functions such as COUNT, SUM, and AVG calculate values within each group.
  • The HAVING clause filters grouped results based on specific conditions.
  • By the end of the course, learners can write effective SELECT statements with filtering and sorting and apply their knowledge to manipulate data in a database.

Frequently Asked Questions

What will I learn in this course?

You will dive into T-SQL and learn how to effectively query databases, including the differences between DDL and DML statements, filtering and sorting data with the WHERE and ORDER BY clauses, grouping rows with GROUP BY and aggregate functions like COUNT, SUM, and AVG, and filtering grouped results with the HAVING clause.

What skills will I gain from this course?

The course covers skills in Data Classification, Data Feed, and Transact-SQL.

What topics do the lessons cover?

Lessons cover the basics of T-SQL across two parts, getting started with SELECT statements, and filtering and sorting data.

What will I be able to do by the end of the course?

You will have a strong foundation in querying databases using T-SQL, be able to write effective SELECT statements with filtering and sorting, understand the importance of DDL and DML statements, and apply your knowledge to manipulate data in a database.