You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jonathan edited this page Apr 28, 2023
·
10 revisions
Exercise 1: SELECT
In SQL Online, type the following query and click "Run":
SELECT*FROM FOOD_NAME
Exercise 2: WHERE
What 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;
column contains the value we want to test
operator is the type of comparison (e.g., =, <, >, <=, >=)
value is the value we want to match (e.g., a number)
Only data where the WHERE clause is true will be retrieved.