
M12 - SQL Query
Quiz
•
Geography
•
University
•
Practice Problem
•
Easy
ALI SUROJAYA
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
To find the average salary for each department, you would use the following SQL query:
SELECT Department, AVG(Salary)
FROM Employees
GROUP BY _____;
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
To get students who have a GPA greater than 3.5 and are majoring in 'Engineering', you would use the following SQL query:
SELECT *
FROM Students
WHERE GPA > 3.5 ___ Major = 'Engineering';
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
To find the maximum order amount for each customer, you would use the following SQL query:
SELECT CustomerID, MAX(OrderAmount)
FROM Orders
GROUP BY _____;
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Retrieve employee names and their corresponding department names from the employees and departments tables:
SELECT employees.name, departments.department_name
FROM employees
_____ departments
ON employees.department_id = departments.id;
5.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Find the total number of hours worked by each employee from the timesheets table:
SELECT employee_id, _____(hours) AS total_hours_worked
FROM timesheets
GROUP BY employee_id;
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Retrieve the name and highest score of students from the scores table:
SELECT name, _____(score) FROM scores;
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
10 questions
Hatshepsut: Egypt's Female Pharaoh
Quiz
•
6th Grade - University
10 questions
Practical Geography of Class 12th
Quiz
•
12th Grade - Professi...
15 questions
Ras Al Khaimah
Quiz
•
KG - Professional Dev...
15 questions
Geology
Quiz
•
University
11 questions
Indian Geography
Quiz
•
University
10 questions
Unit 4 Quiz Review
Quiz
•
KG - University
10 questions
Volcano
Quiz
•
1st Grade - University
10 questions
Fossils
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
