
M12 - SQL Query

Quiz
•
Geography
•
University
•
Easy
ALI SUROJAYA
Used 3+ times
FREE Resource
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;
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Unit 4 Europe

Quiz
•
9th Grade - University
10 questions
Natural Disasters

Quiz
•
KG - Professional Dev...
15 questions
Agriculture Quiz

Quiz
•
4th Grade - Professio...
8 questions
Climate and Ocean Currents

Quiz
•
6th Grade - University
15 questions
General Knowledge II Grade 5

Quiz
•
5th Grade - University
15 questions
NC and US Geography

Quiz
•
7th Grade - University
13 questions
EV203: Climate and Biomes

Quiz
•
12th Grade - University
12 questions
Guess The Flags [HARD]

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade