Which of the following is a single-row SQL function that converts a string to uppercase in Oracle SQL?

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
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 Quizizz
14 questions
SQL MCQ

Quiz
•
University
15 questions
AdBase Quiz No 2

Quiz
•
University
10 questions
9.1 Databases Cambridge IGCSE 0478

Quiz
•
10th Grade - University
10 questions
SQL

Quiz
•
University
15 questions
Quiz de SQL Básico

Quiz
•
University
10 questions
DBMS 1

Quiz
•
University
10 questions
SQL CTE and Agregations

Quiz
•
University
13 questions
Quiz-O-Tech Final Round

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade