
Lab 5 Review Quiz - Functions and Subqueries

Quiz
•
Computers
•
University
•
Hard
Nicole Berard
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a single-row SQL function that converts a string to uppercase in Oracle SQL?
LOWER
UPPER
INITCAP
CONCAT
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the COUNT function in SQL?
To count the number of columns in a table
To count the number of rows in a table
To count the number of distinct values in a column
To count the number of characters in a string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL statements correctly uses a subquery to find employees who earn more than the average salary?
SELECT * FROM employees WHERE salary > (SELECT AVG(salary) FROM employees);
SELECT * FROM employees WHERE salary > AVG(salary);
SELECT * FROM employees WHERE salary > ALL (SELECT salary FROM employees);
SELECT * FROM employees WHERE salary > (SELECT MAX(salary) FROM employees);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a correlated subquery, which of the following is true?
The subquery is executed once for the entire query
The subquery is executed once for each row processed by the outer query
The subquery is executed only if the outer query returns no results
The subquery is executed only if the outer query returns results
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of an aggregate function in SQL?
LENGTH
SUM
SUBSTR
INSTR
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following SQL statement do? SELECT department_id, MAX(salary) FROM employees GROUP BY department_id;
It selects the maximum salary from the employees table
It selects the department ID and the maximum salary for each department
It selects the department ID and the total salary for each department
It selects the department ID and the average salary for each department
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL functions can be used to find the remainder of a division operation?
MOD
DIV
REM
ROUND
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
N1 & C1 DBMS LAB QUIZ

Quiz
•
University
15 questions
BPO Industry Quiz

Quiz
•
10th Grade - University
14 questions
SQL MCQ

Quiz
•
University
15 questions
Database Management Concepts

Quiz
•
University
5 questions
SQL Quiz

Quiz
•
University
10 questions
DBMS Lab quizII

Quiz
•
University
10 questions
DBMS 1

Quiz
•
University
10 questions
DBMS_CSN_WEEK5_QUIZ

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University