SQL Query Assignment

Quiz
•
Computers
•
12th Grade
•
Medium
Raphael Kenyuri
Used 13+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL statement will return the minimum and maximum prices from a "Products" table?
SELECT MIN(Price), MAX(Price) FROM Products;
SELECT Price FROM Products WHERE Price = MIN() AND MAX();
SELECT MINIMUM(Price), MAXIMUM(Price) FROM Products;
SELECT MINIMUM(Price), MAXIMUM(Price) FROM Products;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you retrieve the first 10 records from a table called "Customers"?
SELECT TOP 10 * FROM Customers;
SELECT * FROM Customers LIMIT 10;
SELECT * FROM Customers WHERE ROWNUM <= 10;
SELECT FIRST 10 * FROM Customers;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query will select all records from the "Employees" table where the "Salary" column is not NULL?
SELECT * FROM Employees WHERE Salary IS NOT NULL;
SELECT * FROM Employees WHERE Salary NOT NULL;
SELECT * FROM Employees WHERE Salary != NULL;
SELECT * FROM Employees WHERE Salary IS NOT EMPTY;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query will select all records from the "Orders" table where the "ShippedDate" column is NULL?
SELECT * FROM Orders WHERE ShippedDate NULL;
SELECT * FROM Orders WHERE ShippedDate IS NULL;
SELECT * FROM Orders WHERE ShippedDate = NULL;
SELECT * FROM Orders WHERE ShippedDate IS EMPTY;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL statement will insert a new record into the "Customers" table?
INSERT INTO Customers VALUES ('John Doe', '123 Main St', 'Anytown');
ADD INTO Customers ('John Doe', '123 Main St', 'Anytown');
INSERT INTO Customers (Name, Address, City) VALUES ('John Doe', '123 Main St', 'Anytown');
INSERT Customers ('John Doe', '123 Main St', 'Anytown');
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL statement will select all records from the "Employees" table, sorted by the "LastName" column in descending order?
SELECT * FROM Employees ORDER BY LastName;
SELECT * FROM Employees ORDER BY LastName DESC;
SELECT * FROM Employees SORT BY LastName DESC;
SELECT * FROM Employees ORDER LastName DESC;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query will select records from the "Products" table where the "Price" is greater than 20 AND the "Category" is not 'Electronics' OR the "Stock" is more than 50?
SELECT * FROM Products WHERE Price > 20 AND Category != 'Electronics' OR Stock > 50;
SELECT * FROM Products WHERE Price > 20 OR Category != 'Electronics' AND Stock > 50;
SELECT * FROM Products WHERE (Price > 20 AND Category != 'Electronics') OR Stock > 50;
SELECT * FROM Products WHERE Price > 20 AND (Category != 'Electronics' OR Stock > 50);
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
SQL JOIN, Order By, Group By

Quiz
•
12th Grade
14 questions
AQA GCSE Databases and SQL

Quiz
•
9th - 12th Grade
15 questions
Learning SQL

Quiz
•
11th - 12th Grade
15 questions
Chapter 9 - Databases (IGCSE Computer Science)

Quiz
•
9th - 12th Grade
15 questions
Preguntas sobre SQL

Quiz
•
9th - 12th Grade
13 questions
SQL: DML DDL DCL

Quiz
•
11th - 12th Grade
15 questions
Structured Query Language Quiz

Quiz
•
12th Grade
10 questions
SQL- Join, Group by, having

Quiz
•
9th - 12th Grade
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
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University