0
0
Google Sheetsspreadsheet~5 mins

QUERY function basics in Google Sheets - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the QUERY function do in Google Sheets?
The QUERY function lets you ask questions about your data, like filtering or sorting, using a simple language similar to SQL.
Click to reveal answer
beginner
What is the basic syntax of the QUERY function?
QUERY(data, query, [headers]) where:<br>- data: the range of cells to query<br>- query: the text string with your question<br>- headers: optional number of header rows in data
Click to reveal answer
beginner
In QUERY, how do you select only columns A and C from a data range?
Use SELECT A, C in the query string to pick only columns A and C.
Click to reveal answer
beginner
How do you filter rows where column B is greater than 100 using QUERY?
Use WHERE B > 100 in the query string to show only rows where column B has values over 100.
Click to reveal answer
beginner
What does the optional third argument in QUERY do?
It tells QUERY how many header rows your data has, so it knows which rows to treat as labels and not data.
Click to reveal answer
What is the correct way to start a QUERY function in Google Sheets?
A=QUERY(data, "SELECT *")
B=QUERY(data, SELECT *)
C=QUERY(data, 'SELECT *')
D=QUERY(data, SELECT "*")
Which part of QUERY specifies the data to analyze?
AThe query string
BThe data range
CThe headers argument
DThe output format
How do you tell QUERY to only show rows where column C equals 'Apple'?
A"WHERE C = Apple"
B"WHERE C == 'Apple'"
C"WHERE C = 'Apple'"
D"WHERE C = \"Apple\""
What does SELECT * mean in a QUERY?
ASelect all columns
BSelect no columns
CSelect only the first column
DSelect only numeric columns
If your data has 1 header row, what should the third argument in QUERY be?
A0
BIt is not needed
C2
D1
Explain how to use the QUERY function to filter data by a condition.
Think about how to ask a question like 'show me rows where...'
You got /4 concepts.
    Describe the role of the third argument in the QUERY function and why it matters.
    Consider how QUERY treats the first rows of your data.
    You got /4 concepts.