Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Word filtering | Filtering
SQL Basics
SectionΒ 2. ChapterΒ 1
single

single

bookWord filtering

Swipe to show menu

Imagine that we want to extract all the hybrid cars from our database. As you understand, doing it manually is a worthless job and has to be automated.

Surely it has already been implemented! To filter observations based on columns with text use WHERE statement. For example,

123
SELECT * FROM audi_cars WHERE fueltype = 'Hybrid'
copy

This query will return all the Hybrid cars.

Please note, that in that case, you have to use single quotes, not double!

Task

Swipe to start coding

From audi_cars table extract only cars with Automatic transmission. Extract all the columns.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 1
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt