SQL Basics

SQL Basics

Professional Development

8 Qs

quiz-placeholder

Similar activities

Black History Month

Black History Month

Professional Development

10 Qs

Driving Theory Test: Alertness

Driving Theory Test: Alertness

KG - Professional Development

10 Qs

Picture Round

Picture Round

Professional Development

10 Qs

FAMOUS

FAMOUS

University - Professional Development

13 Qs

Lesson 1-4 Review

Lesson 1-4 Review

Professional Development

12 Qs

Prodigy Epics

Prodigy Epics

Professional Development

13 Qs

Meme Quiz

Meme Quiz

1st Grade - Professional Development

8 Qs

HEM Chapter 1

HEM Chapter 1

Professional Development

10 Qs

SQL Basics

SQL Basics

Assessment

Quiz

Other

Professional Development

Practice Problem

Medium

Created by

Makarand Sawant

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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?