SQL Basics

SQL Basics

Professional Development

8 Qs

quiz-placeholder

Similar activities

Fundamentals of SQL

Fundamentals of SQL

Professional Development

10 Qs

Advanced SQL Quiz

Advanced SQL Quiz

Professional Development

5 Qs

History of UAE

History of UAE

Professional Development

10 Qs

SCR Training

SCR Training

Professional Development

10 Qs

R3S1P4-VirtuQuest2024

R3S1P4-VirtuQuest2024

Professional Development

5 Qs

Exam 2

Exam 2

University - Professional Development

10 Qs

SQL Quiz

SQL Quiz

Professional Development

7 Qs

Pretest

Pretest

Professional Development

11 Qs

SQL Basics

SQL Basics

Assessment

Quiz

Other

Professional Development

Medium

Created by

Makarand Sawant

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which SQL statement is used to retrieve data from database?

INSERT

DELETE

SELECT

UPDATE

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the following Code snippet do?

ALTER TABLE STUDENT ADD(ADDRESS VARCHAR2(20));

Adds a column called ADDRESS in table STUDENT

Checks if column ADDRESS in the table STUDENT is VARCHAR

Syntax Error

None of the above

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt


In "UPDATE Employees SET Age = Age + 1 WHERE Department IN ('Sales', 'HR') AND Age >= 30;",

identify the error.

IN keyword is incorrect

AND does not work in where with Update

Expression in SET clause

All Correct

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When is the wildcard in WHERE clause used?


An exact match is necessary for a CREATE statement.

An exact match is not possible in a SELECT statement.

An exact match is necessary for a SELECT statement.

None of the above.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

5. What is TRUE about UNION ALL Operator?


  1. The results of both queries are combined with this operator.


  1. After performing the UNION ALL operation, duplicate rows will not be removed.


  1. Both A and B

  1. None of the above

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the difference between UNION & UNION ALL operators?

  1. Combining the results of two select statements will be done using UNION whereas combined records from both queries are returned by UNION ALL operator.


  1. Combining the results of two select statements will be done using UNION ALL whereas combined records from both queries are returned by UNION operator.

  1. After performing the UNION operation, duplicate rows will not be removed whereas after performing the UNION ALL operation, duplicate rows will be removed.

  1. None of the above

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which SQL constraint do we use to set some value to a field whose value has not been added explicitly?


UNIQUE

NOT NULL

DEFAULT

CHECK

8.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What type of join returns all rows from both tables, joining records where matching & adding NULLs if there's no

match?

CROSS JOIN

INNER JOIN

FULL OUTER JOIN

LEFT JOIN