
User defined functions and Window functions Quiz
Authored by Education Admin
Computers
Professional Development
Used 26+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a SQL function do?
Stores data
Joins tables
Calculates a result using inputs
Deletes rows
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a built-in SQL function?
JOIN()
RANK()
ADD_TABLE()
DROP()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why would you create your own SQL function?
To delete tables
To avoid using SELECT
To reuse custom logic
To reduce memory usage
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a new function in BigQuery?
DEFINE FUNCTION
MAKE FUNCTION
CREATE FUNCTION
FUNCTION NEW
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the function SAFE_DIVIDE(a, b), what does it help prevent?
Repetition
Syntax errors
Division by zero
Slow queries
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
In CREATE FUNCTION course17.margin(x, y), what is course17?
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of these are good reasons to use user-defined functions?
Reuse common logic
Keep queries clean
Enforce data consistency
Format column names
Access all questions and much more by creating a free account
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
Already have an account?