DML Quiz

DML Quiz

University

11 Qs

quiz-placeholder

Similar activities

Computer Network

Computer Network

University

10 Qs

BOOLEAN CLUB QUIZ 1

BOOLEAN CLUB QUIZ 1

University

10 Qs

itAppB MT Q1

itAppB MT Q1

University

10 Qs

chapter 3 - Network & Security Overview

chapter 3 - Network & Security Overview

University

13 Qs

HTML

HTML

University

13 Qs

07 - Map

07 - Map

University

15 Qs

Cloud QUIZ

Cloud QUIZ

University - Professional Development

12 Qs

Database Quizz

Database Quizz

University

10 Qs

DML Quiz

DML Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Data Amperes

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the use of MERGE command in DML?

The MERGE command is used to modify data in a table.

The MERGE command is used to delete data from a table.

The MERGE command is used to insert data into a table.

The MERGE command is used to perform an "upsert"(update and insert) operation, which updates existing data or inserts new data depending on a specified condition.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct syntax of merge statement

USING source_table AS S

MERGE target_table AS T

ON (T.key_column = S.key_column)

WHEN MATCHED THEN

    UPDATE SET T.column1 = S.column1, T.column2 = S.column2, ...

WHEN NOT MATCHED THEN

    INSERT (key_column, column1, column2, ...)

    VALUES (S.key_column, S.column1, S.column2, ...);

MERGE target_table AS T

USING source_table AS S

WHEN MATCHED THEN

    UPDATE SET T.column1 = S.column1, T.column2 = S.column2, ...

WHEN NOT MATCHED THEN

    INSERT (key_column, column1, column2, ...)

    VALUES (S.key_column, S.column1, S.column2, ...)

ON (T.key_column = S.key_column);

MERGE target_table AS T

USING source_table AS S

ON (T.key_column = S.key_column)

WHEN MATCHED THEN

    UPDATE SET T.column1 = S.column1, T.column2 = S.column2, ...

WHEN NOT MATCHED THEN

    INSERT (key_column, column1, column2, ...)

    VALUES (S.key_column, S.column1, S.column2, ...);

MERGE target_table AS T

USING source_table AS S

ON (T.key_column = S.key_column)

WHEN MATCHED

    UPDATE SET T.column1 = S.column1, T.column2 = S.column2, ...

WHEN NOT MATCHED

    INSERT (key_column, column1, column2, ...)

    VALUES (S.key_column, S.column1, S.column2, ...);

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The three basic commands required to build a view are the following:

VIEW, SELECT, WHERE

CREATE VIEW, SELECT, JOIN

CREATE VIEW, SELECT, FROM

VIEW, WHERE, FROM

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements are true of a view?

A view can insert data into tables

A view simplifies how users work with data.

A view is not reusable.

A view joins static tables using user-defined parameters.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Removes rows from a table.

Drop table

Remove table

Delete table

Alter table

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Add new rows to a table.

Add

Insert

Create

Select

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Finding the first not NULL values in a list of columns

INITCAP

CONCAT

COALESCE

TRUNC

SUBSTR

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?

Discover more resources for Computers