
Subqueries Quiz

Quiz
•
Information Technology (IT)
•
University
•
Medium

John Ulakovich
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which key is used to represent relationships between tables?
Foreign key
Primary key
Secondary key
Tertiary key
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the relationship between tables in a database called?
Foreign key relationship
Primary key relationship
Unique key relationship
Composite key relationship
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the given SQL query, what is being selected?
SELECT supplierID
FROM products
WHERE productName LIKE '%bread%';
productName
supplierID
productID
customerID
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the '%' symbol in the SQL query?
SELECT supplierID
FROM products
WHERE productName LIKE '%bread%';
To represent a wildcard for any sequence of characters
To denote a comment
To specify a column name
To indicate a table name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data is being queried in the example?
SELECT *
FROM suppliers
WHERE id IN ( SELECT DISTINCT supplierID
FROM products
WHERE productName LIKE '%bread%' );
Customer data
Supplier data
Order data
Employee data
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the result if the 'LIKE' clause was changed to 'NOT LIKE' in the query?
SELECT DISTINCT supplierID
FROM products
WHERE productName LIKE '%bread%';
It would select all products
It would select products not containing 'bread'
It would select products containing 'bread'
It would cause an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the SQL function MIN() return?
The maximum value in a column
The average value in a column
The minimum value in a column
The sum of values in a column
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Aprofundando em SQL

Quiz
•
University
18 questions
Quizz về SQL Injection

Quiz
•
University
19 questions
INFO MAN FINALS

Quiz
•
University
15 questions
SQL Subqueries and Joins Quiz

Quiz
•
University
18 questions
Database Refreshment

Quiz
•
University
20 questions
QUIZIZZ | MODELAGEM DA INFORMAÇÃO

Quiz
•
University
15 questions
Kiểm tra kiến thức về SQL

Quiz
•
11th Grade - University
15 questions
Power BI Quiz (Beginner Level)

Quiz
•
University
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