Question 8 of 307
Single answerYou are building new real-time data warehouse for your company and will use Google BigQuery streaming inserts. There is no guarantee that data will only be sent in once but you do have a unique ID for each row of data and an event timestamp. You want to ensure that duplicates are not included while interactively querying data. Which query type should you use?
AInclude ORDER BY DESK on timestamp column and LIMIT to 1.
BUse GROUP BY on the unique ID column and timestamp column and SUM on the values.
CUse the LAG window function with PARTITION by unique ID along with WHERE LAG IS NOT NULL.
✓DUse the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1.
✓
Correct Answer: D
Use the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1.
▥
Explanation
The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.