
SQL Concepts
Authored by Cilene Mainente
Computers
2nd Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a JOIN in SQL?
A JOIN in SQL is used to combine rows from two or more tables based on a related column between them.
A JOIN in SQL is used to create new tables
A JOIN in SQL is used to delete rows from a table
A JOIN in SQL is used to update rows in a table
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between INNER JOIN and OUTER JOIN.
INNER JOIN returns all rows, OUTER JOIN only returns matching rows
INNER JOIN combines all rows, OUTER JOIN only returns matching rows
INNER JOIN returns all rows, OUTER JOIN combines all rows
INNER JOIN compares and returns matching rows, OUTER JOIN returns all rows with NULLs for missing matches.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you perform a self-join in SQL?
SELECT a.column1, b.column2 FROM table_name a INNER JOIN table_name b ON a.related_column = b.related_column
SELECT a.column1, b.column2 FROM table_name a JOIN table_name b ON a.related_column = b.related_column
SELECT a.column1, b.column2 FROM table_name a RIGHT JOIN table_name b ON a.related_column = b.related_column
SELECT a.column1, b.column2 FROM table_name a LEFT JOIN table_name b ON a.related_column = b.related_column
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a subquery in SQL?
A subquery in SQL is a query nested within another query.
A subquery in SQL is a query that can only be used in SELECT statements
A subquery in SQL is a query that is always executed first
A subquery in SQL is a query that returns multiple columns
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give an example of using the WHERE clause in a SQL query.
SELECT * FROM table_name WHERE column_name = specific_value;
SELECT * FROM table_name WHERE column_name = specific_value;
SELECT * FROM table_name WHERE column_name != 'specific_value';
SELECT * FROM table_name WHERE column_name = 'specific_value';
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the GROUP BY clause in SQL?
To group rows with the same values together for aggregate function calculations.
To update values in a specific column
To filter rows based on a specific condition
To sort rows in ascending order based on a specific column
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between the HAVING clause and the WHERE clause.
The HAVING clause filters rows before grouping, and the WHERE clause filters rows after grouping.
The HAVING clause is used with SELECT statements, and the WHERE clause is used with UPDATE statements.
The HAVING clause can be used with aggregate functions, and the WHERE clause cannot.
The WHERE clause filters rows before grouping, and the HAVING clause filters rows after grouping.
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
15 questions
G2-W14 - MS Excel
Quiz
•
2nd Grade
10 questions
Advanced SQL
Quiz
•
KG - University
11 questions
Đoán hình
Quiz
•
2nd Grade
15 questions
HKICO - ĐỀ 2
Quiz
•
2nd Grade
13 questions
Как хорошо ты знаешь IT?
Quiz
•
1st - 12th Grade
14 questions
Google Docs and Google Slides Review
Quiz
•
KG - University
14 questions
Using Basic Operators
Quiz
•
2nd Grade
9 questions
MS Excel - Intro
Quiz
•
2nd - 3rd Grade
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
Discover more resources for Computers
14 questions
Contractions
Quiz
•
2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Counting Coins
Quiz
•
2nd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
19 questions
Subject-Verb Agreement
Quiz
•
2nd - 5th Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
12 questions
2-Digit Subtraction with Regrouping
Quiz
•
2nd Grade
14 questions
Fractions
Quiz
•
2nd - 3rd Grade