
DBMS-Select Statement
Authored by KarunaiMuthu SriRam
Computers
University
50 Questions
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following query:
SELECT COUNT(*) FROM employees;
What does this query return?
The number of employees in the "employees" table.
The names of all employees in the "employees" table.
The average salary of employees.
An error because COUNT(*) is not a valid function.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following query:
SELECT first_name || ' ' || last_name AS full_name FROM employees WHERE department_id = 30;
What does this query return?
The first name of all employees in department 30.
The last name of all employees in department 30.
The full name (concatenation of first and last names) of employees in department 30.
An error because the concatenation operator (||) is not allowed.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following query:
SELECT AVG(salary) FROM employees GROUP BY department_id;
What does this query return?
The average salary of all employees.
The average salary for each department.
An error because you cannot use AVG() with GROUP BY.
The total salary for each department.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following query:
SELECT employee_id, last_name FROM employees WHERE salary > 50000;
What does this query return?
All employee IDs and last names.
All employee IDs and last names of employees with a salary greater than $50,000.
An error because employee_id is not a valid column.
All employees with a salary greater than $50,000.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following query:
SELECT DISTINCT department_id FROM employees;
What does this query return?
A list of all unique department IDs.
A list of all department IDs, including duplicates.
An error because DISTINCT cannot be used with SELECT.
A list of all employee IDs.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following query:
SELECT employee_id, salary * 12 AS annual_salary FROM employees;
What does this query return?
The monthly salary of all employees.
The annual salary (12 times the monthly salary) of all employees.
An error because you cannot use arithmetic operations in SELECT.
The sum of all annual salaries.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following query:
SELECT department_id, COUNT(*) FROM employees GROUP BY department_id HAVING COUNT(*) > 5;
What does this query return?
The number of employees in each department.
An error because HAVING cannot be used with COUNT(*).
The number of departments with more than 5 employees.
The department IDs with more than 5 employees.
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?
Similar Resources on Wayground
46 questions
Mobile Application Basic
Quiz
•
University
45 questions
IP MIDTERM
Quiz
•
University
50 questions
PNETSEC Final Examination (II-BINS)
Quiz
•
University
50 questions
MidExam InfoAssuSec2
Quiz
•
University
47 questions
Relational Database Design
Quiz
•
University
50 questions
USBN TIK KELAS 9A-9C
Quiz
•
9th Grade - University
51 questions
Module 11
Quiz
•
University
50 questions
UTS SISTEM INFORMASI MANAJEMEN
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University