Count answered questions using the whole row (visitor feedback)
Each row is one survey response with a column per question. Count how many questions each respondent answered.
- Level
- intermediate
- Time
- ~8 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Use _ inside each as the whole row record, so the calculation covers any number of columns.
The scenario, sample data, step list, hints and solution open with Pro. Grading checks your query against hidden data as well as the visible sample, so a query that only fits the sample doesn't pass.
Input
- Responses (table)
- RespondentID: text
- Q1: text (nullable)
- Q2: text (nullable)
- Q3: text (nullable)
Expected output columns
RespondentID (text), Answered (number)