Dive in SQL

Dive in SQL

University

20 Qs

quiz-placeholder

Similar activities

Grafana & Friends Meetup

Grafana & Friends Meetup

University

15 Qs

Activity 1 - Database Management System

Activity 1 - Database Management System

University

15 Qs

Topic 1 - ES - Introduction

Topic 1 - ES - Introduction

University

20 Qs

QUIZ

QUIZ

University

23 Qs

DPSD QUIZ 1

DPSD QUIZ 1

University

20 Qs

MGT315 Chapter 1-2

MGT315 Chapter 1-2

University

20 Qs

CIPHER QUEST ROUND 2 SET 2

CIPHER QUEST ROUND 2 SET 2

University

20 Qs

Topic 5 - Ethics and Professionalism in Civil Eng

Topic 5 - Ethics and Professionalism in Civil Eng

University

15 Qs

Dive in SQL

Dive in SQL

Assessment

Quiz

Engineering

University

Practice Problem

Medium

Created by

PAVITHRA G

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?