Which SQL statement is used to retrieve data from database?

SQL Basics

Quiz
•
Other
•
Professional Development
•
Medium
Makarand Sawant
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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?
The results of both queries are combined with this operator.
After performing the UNION ALL operation, duplicate rows will not be removed.
Both A and B
None of the above
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the difference between UNION & UNION ALL operators?
Combining the results of two select statements will be done using UNION whereas combined records from both queries are returned by UNION ALL operator.
Combining the results of two select statements will be done using UNION ALL whereas combined records from both queries are returned by UNION operator.
After performing the UNION operation, duplicate rows will not be removed whereas after performing the UNION ALL operation, duplicate rows will be removed.
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
Similar Resources on Quizizz
12 questions
MC Demos

Quiz
•
Professional Development
11 questions
Pretest

Quiz
•
Professional Development
5 questions
Advanced SQL Quiz

Quiz
•
Professional Development
10 questions
Airplane

Quiz
•
3rd Grade - Professio...
10 questions
Data Master buổi 3

Quiz
•
Professional Development
12 questions
Intro SQL 2 - Data Dictionary

Quiz
•
Professional Development
10 questions
Minerva Hour - EVA & HSSC HWA

Quiz
•
Professional Development
10 questions
C Language Basic Quiz

Quiz
•
7th Grade - Professio...
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade