quiz -09/04/24

quiz -09/04/24

University

10 Qs

quiz-placeholder

Similar activities

Cuestionario sobre Teoría de Conjuntos

Cuestionario sobre Teoría de Conjuntos

University

14 Qs

JSP

JSP

University

10 Qs

BAnDS Tournament Round 3

BAnDS Tournament Round 3

University - Professional Development

10 Qs

BD 2.1

BD 2.1

3rd Grade - University

10 Qs

Introdução às Consultas SQL

Introdução às Consultas SQL

12th Grade - University

10 Qs

SQL - DEBUTANT

SQL - DEBUTANT

University

14 Qs

Google Workspace....so far

Google Workspace....so far

University

10 Qs

Sql Set 2

Sql Set 2

University

10 Qs

quiz -09/04/24

quiz -09/04/24

Assessment

Quiz

Other

University

Medium

Created by

Yash Sinha

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQL, what is the purpose of the WHERE clause?

To sort the results

To filter the results based on a condition

To join multiple tables

To group the results

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PL/SQL Variable needs to be declared in the –

  1. Declaration Section

  1. Variable Section

  1. Initialization Section

  1. None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between the DROP and TRUNCATE commands in SQL?

DROP deletes the table, TRUNCATE deletes only the table data

TRUNCATE deletes the table, DROP deletes only the table data

No difference

Both commands modify table data

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the HAVING clause in SQL, and when would you use it?

To filter results based on a condition

To specify conditions on grouped data using aggregate functions

To sort results in descending order

To join multiple tables

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Explain the difference between a view and a table in SQL.

Views and tables are identical in SQL

A view is a virtual table based on the result of a SELECT query, while a table stores actual data

A view and a table both store actual data

A view is a subset of a table and cannot be queried independently

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Explain the difference between the INNER JOIN and CROSS JOIN in SQL.

INNER JOIN and CROSS JOIN are synonymous

INNER JOIN returns only matching rows, while CROSS JOIN returns the Cartesian product of the two tables

INNER JOIN and CROSS JOIN are not supported in SQL

INNER JOIN returns the Cartesian product of the two tables, while CROSS JOIN returns only matching rows

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the error in
"UPDATE Employees SET Salary = Salary * 1.05 WHERE;"

UPDATE keyword

SET keyword

WHERE clause

No error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?