SQL Quiz
Quiz
•
Computers
•
University
•
Hard
HUỲNH Analyst
Used 53+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Query Optimization: What is the main reason to not use SELECT * to explore your dataset?
The BigQuery preview data table feature is faster and free to preview records
Selecting all columns is an expensive operation performance-wise, especially with no filters
Selecting all columns, even with WHERE clause filters, will scan your entire dataset and incur charges for all bytes processed.
All of the above
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Data Duplication Checking: What is a common way in SQL to identify duplicate records?
Sort the records and look for multiple occurrences visually
Use an easy-to-go COUNT function
Use ranking functions (row_number, rank, dense_rank) to number the records in order of time
Check whether the tables we are going to perform joining have the one-to-many relationship
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Query Optimization: What is NOT one of the best practices for cost optimizing your queries?
Avoid SELECTing all columns in your data, use only what you need
Use LIMIT queries with WHERE clause filters to limit the amount of data scanned
Filter your data as early as possible so you are not doing work on records that are later filtered out
None of answer above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Query Optimization: What is the better method to quickly and approximately check A30 from `USER_LOGIN_V2` table?
APPROX_COUNT_DISTINCT()
Just use COUNT(DISTINCT)
HyperLogLog++
The first and third answer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is better way to get the latest or highest value record? For example: user_id has highest gmv in a month of OTA?
rank() over (partition by OTA order by gmv asc)
rank() over (partition by OTA order by gmv desc)
ARRAY_AGG(user_id order by gmv desc limit 1)[OFFSET(0)]
row_number() over (partition by OTA order by gmv desc)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A data analyst wants to retrieve only records from a database that have matching values in two different tables. Which JOIN function should they use?
LEFT JOIN
RIGHT JOIN
OUTER JOIN
INNER JOIN
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are working with a dataset with the column name “firstquarterexpenses.” How can you rename this column to make it more readable?
1st_quarter_expenses
fqe
first_quarter_expenses
first+quarter+expenses
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Semi-Long Quiz#1 - SAM, NW3A-3E
Quiz
•
University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
20 questions
DI (EM24) - Diseño de Contenidos (T8)
Quiz
•
University - Professi...
18 questions
videojuegos generales
Quiz
•
University
20 questions
COA_QUIZ_UNIT I
Quiz
•
University
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
16 questions
Algo Quiz
Quiz
•
University
19 questions
Informatika Kelas 5 Bab 2
Quiz
•
5th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
