-
Notifications
You must be signed in to change notification settings - Fork 9
Managing Data with SQL: Exercises
Jonathan edited this page Apr 28, 2023
·
10 revisions
In SQL Online, type the following query and click "Run":
SELECT *
FROM FOOD_NAMEWhat if we want to get only specific entries from our data? The WHERE clause can be used after the FROM clause to add conditions to what data is retrieved, like so:
SELECT *
FROM FOOD_NAME
WHERE column operator value;-
columncontains the value we want to test -
operatoris the type of comparison (e.g.,=,<,>,<=,>=) -
valueis the value we want to match (e.g., a number)
Only data where the WHERE clause is true will be retrieved.