Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Number filtering | Filtering
SQL Basics

Svep för att visa menyn

book
Number filtering

But what if we want to choose a car with small mileage, let it be less than 5000 miles. We need to set the condition to a numeric column.

This also can be done with WHERE statement. For example,

123
SELECT * FROM audi_cars WHERE mileage < 5000
copy

Comparison operators you also can use for numeric columns:

  • < - less than

  • <= - less-equal

  • >= - greater-equal -> - greater

  • = - equal

  • <> - not equal.

Now let's try to find the cheapest car in this dataset.

Uppgift

Swipe to start coding

From the audi_cars dataset extract cars with price less than 10 000.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

Awesome!

Completion rate improved to 2.63

book
Number filtering

But what if we want to choose a car with small mileage, let it be less than 5000 miles. We need to set the condition to a numeric column.

This also can be done with WHERE statement. For example,

123
SELECT * FROM audi_cars WHERE mileage < 5000
copy

Comparison operators you also can use for numeric columns:

  • < - less than

  • <= - less-equal

  • >= - greater-equal -> - greater

  • = - equal

  • <> - not equal.

Now let's try to find the cheapest car in this dataset.

Uppgift

Swipe to start coding

From the audi_cars dataset extract cars with price less than 10 000.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

close

Awesome!

Completion rate improved to 2.63

Svep för att visa menyn

some-alt