Dive in SQL

Quiz
•
Engineering
•
University
•
Medium
PAVITHRA G
Used 17+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL keyword is used to retrieve only unique values from a column?
DISTINCT
UNIQUE
LIMIT
GROUP BY
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the INNER JOIN operation return?
a) All rows from the left table
All rows from the right table
Rows that have matching values in both tables
Non-matching rows from both tables
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following SQL query, what will be the result of the subquery?
SELECT * FROM employees WHERE salary > (SELECT AVG(salary) FROM employees);
All employees with salaries less than the average
All employees with salaries greater than the average
An error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to remove all rows from a table but keep the structure intact?
DELETE
DROP
TRUNCATE
REMOVE
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Which of the following SQL clauses is used to specify the conditions under which a group is included in the result set of a GROUP BY statement?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the effect of using RANK() in a SQL query as opposed to ROW_NUMBER()?
RANK() skips ranks when there are ties, while ROW_NUMBER() does not.
ROW_NUMBER() skips ranks when there are ties, while RANK() does not.
Both RANK() and ROW_NUMBER() produce identical results.
RANK() and ROW_NUMBER() can be used interchangeably without any difference.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL queries would return duplicate rows in its result set?
SELECT * FROM products;
SELECT DISTINCT * FROM products;
SELECT product_id, COUNT(*)
FROM products
GROUP BY product_id;
SELECT * FROM products GROUP BY product_id;
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
GREEN ENERGY COMPLIANCE

Quiz
•
University
20 questions
Divide and Conquer & Dynamic Programming

Quiz
•
University
25 questions
css exam

Quiz
•
University
15 questions
Introduction to Earthquake Engineering

Quiz
•
University
15 questions
Data Warehouse and Data Mining_Module1

Quiz
•
University
20 questions
Understanding DBMS Keys and Constraints

Quiz
•
University
25 questions
Exploring Big Data Tools and Techniques

Quiz
•
University
20 questions
GREEN TECHNOLOGY COMPLIANCE

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University