Return to course: Structured Query Language(SQL)
Divex Consult
Previous Lesson
Previous
Next
Next Lesson
Structured Query Language(SQL)
Welcome to Divex Consult!
Welcome Video
Welcome Quiz
Introduction to SQL
SQL 1 - Intro
SQL 1 -Introduction to SQL
SQL 1 -Understanding Databases in SQL
SQL 1 -Setting up SQL
SQL 1 - Outro
SQL 1 - Quiz
SQL 1 - Assignment
ACCESS TO SUBMODULE 2
Creating Records
SQL 2 - Intro
SQL 2 - Data Manipulation
SQL 2 - Modifying Records P.1
SQL 2 - Modifying Records P. 2
SQL 2 - Deleting and Removing Statements
SQL 2 - Data Cleaning
SQL 2 - Outro
SQL 2 - Quiz
SQL 2 -Assignment
ACCESS TO SUBMODULE 3
SQL Syntax
SQL 3 - Introduction to SQL Syntax
SQL 3 - SQL Syntax and Structure
SQL 3 -Filtering Data in SQL
SQL 3 - Outro
SQL 3 - Quiz
SQL 3 - Assignment
ACCESS TO SUBMODULE 4
Aggregation and Grouping Functions in SQL
SQL 4 - Intro
SQL 4 - Aggregation and Grouping
SQL 4 - Group Data
SQL 4 - Filter Groups
SQL 4 - Outro
SQL 4 - Quiz
SQL 4 - Assignment
ACCESS TO SUBMODULE 5
Types of Keys and Joins in SQL
SQL 5 - Intro
SQL 5 -Working with Multiple Data
SQL 5 - JOINs 1
SQL 5 -JOINs 2
SQL 5 - Outro
SQL 5 - Quiz
SQL 5 - Assignment
ACCESS TO SUBMODULE 6
SQL Practices and Concepts
SQL 6 -Intro
SQL 6 - SQL Practices and Concepts
SQL 6 - Outro
Mentorship with Elizabeth
Mentorship
SQL 3 – Quiz
1. Which SQL statement is used to retrieve data from a database table?
*
A) GET
B) FETCH
C) SELECT
D) RETRIEVE
2. What does the following SQL statement do?
SELECT * FROM Customers;
*
A) Selects all columns from the Customers table
B) Selects only unique values from the Customers table
C) Deletes all records from the Customers table
D) Shows the table structure of Customers
3. What will this query return?
SELECT First_Name, Last_Name FROM Customers WHERE City = 'New York';
*
A) All customers in the database
B) Only customers who live in New York
C) Customers whose first or last name contains ‘New York’
D) Customers with missing city information
4. What does the IN operator do in SQL?
*
A) Checks if a column contains NULL values
B) Filters results based on a list of specific values
C) Joins two tables together
D) Sorts data in ascending order
5. What will this query return?
SELECT * FROM Orders WHERE Status IN ('Shipped', 'Delivered');
*
A) Only orders that are Shipped or Delivered
B) Orders where the status is not Shipped or Delivered
C) Orders where the status contains the letter ‘S’
D) Orders that were placed today
6. What does the BETWEEN operator do in SQL?
*
A) Filters values within a range, including the boundary values
B) Finds values that are missing
C) Checks if a value is not in a specific list
D) Sorts results in descending order
7. What will this query return?
SELECT * FROM Products WHERE Price BETWEEN 500 AND 1000;
*
A) Products priced below 500
B) Products priced exactly at 500 and 1000
C) Products priced between 500 and 1000, inclusive
D) Products that are out of stock
8. What does the % wildcard do in SQL LIKE statements?
*
A) Matches a single character
B) Matches zero or more characters
C) Finds exact matches only
D) Ignores case sensitivity
9. What will this query return?
SELECT * FROM Customers WHERE Email LIKE '%@gmail.com';
*
A) Customers whose email ends with @gmail.com
B) Customers whose email contains gmail.com anywhere
C) Customers with no email address
D) Customers from the Gmail office
10. How would you find all products that start with "S" in the Products table?
*
A) SELECT * FROM Products WHERE Product_Name = 'S%';
B) SELECT * FROM Products WHERE Product_Name LIKE 'S%';
C) SELECT * FROM Products WHERE Product_Name LIKE '%S';
D) SELECT * FROM Products WHERE Product_Name IN ('S');
Previous Lesson
Next Lesson