Filtering Archives

If you’re new to querying and filtering SQL data, I would recommend starting with  Getting Started with SQL Server: 1. Simple SELECT Queries. Here you’ll learn about database naming conventions and how to write a simple query.

Once you understand these concepts, I would recommend reading the following two articles:

Once you understand how to use Boolean logic to add AND and OR clauses to your SQL, I would recommend looking into the LIKE operator to learn about partial matching.

Our article

Use Pattern Matching in SQL to Filter Results goes over the details so you’re familiar with LIKE.

All the examples for this lesson are based on Microsoft SQL Server Management Studio and the sample databases AdventureWorks and WideWorldImporters.  You can get started using these free tools using my guide Getting Started Using SQL Server

13

What is the difference between WHERE and HAVING clauses?

In this article learn when to use WHERE and HAVING.  Both perform similar functions, but for different purposes! All the examples for this article are based on Microsoft SQL Server Management Studio and the AdventureWorks2012 database.  You can get started using these free tools using my Guide Getting Started Using SQL Server. How do Where and Having Differ? […]

Continue reading
7

How to Filter Query Results

In today’s lesson you’re going to learn how to filter query results using the WHERE clause.  This clause is important as only those records matching the where clause’s conditions are returned in the query results. The objectives of today’s lesson are to: Learn about various condition types, such as Equality, Range, and Membership Comprehensive example […]

Continue reading
>