
DML Quiz

Quiz
•
Computers
•
University
•
Medium
Data Amperes
Used 5+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Table and Formatting Language

Quiz
•
KG - Professional Dev...
15 questions
Let's Play Excel Excel...!

Quiz
•
University
10 questions
Veri Tabanı Yönetim Sistemleri II Quiz 1

Quiz
•
University
11 questions
Data base Management System

Quiz
•
University
15 questions
SDE311 - Final Test Tips Quiz

Quiz
•
University
10 questions
Module 5 & Module 6

Quiz
•
University - Professi...
10 questions
SQL

Quiz
•
University
10 questions
9.1 Databases Cambridge IGCSE 0478

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University