0
0
Google Sheetsspreadsheet~5 mins

WHERE clause for filtering in Google Sheets - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the WHERE clause in a database query?
The WHERE clause is used to filter records and return only those that meet a specific condition.
Click to reveal answer
beginner
How do you write a WHERE clause to find rows where the value in column A is greater than 10?
You write: WHERE A > 10
Click to reveal answer
intermediate
Can the WHERE clause be used with multiple conditions? How?
Yes, by using AND or OR to combine conditions, for example: WHERE A > 10 AND B = 'Yes'
Click to reveal answer
beginner
In Google Sheets QUERY function, how do you write a WHERE clause to filter rows where column B equals 'Apple'?
Use: WHERE B = 'Apple' inside the QUERY function's query string.
Click to reveal answer
beginner
What happens if you omit the WHERE clause in a query?
The query returns all rows without filtering any data.
Click to reveal answer
What does the WHERE clause do in a query?
ASorts the rows
BJoins two tables
CFilters rows based on a condition
DDeletes rows
Which of these is a valid WHERE clause condition in Google Sheets QUERY to filter rows where column A is greater than 5?
AWHERE 5 > A
BWHERE > 5 A
CWHERE A =
DWHERE A > 5
How do you combine two conditions in a WHERE clause to require both to be true?
AUse AND
BUse OR
CUse NOT
DUse THEN
In Google Sheets QUERY, how do you filter rows where column C is exactly 'Yes'?
AWHERE C == 'Yes'
BWHERE C = 'Yes'
CWHERE C equals 'Yes'
DWHERE C contains 'Yes'
What will happen if you write a query without a WHERE clause?
AAll rows are returned
BNo rows are returned
COnly the first row is returned
DAn error occurs
Explain how the WHERE clause helps in filtering data in a query.
Think about how you pick only certain items from a list.
You got /3 concepts.
    Describe how to use multiple conditions in a WHERE clause.
    Consider how you might say 'I want this AND that' or 'this OR that'.
    You got /4 concepts.