SQL MCQ

Quiz
•
Computers
•
University
•
Hard
Used 7+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid SQL type?
FLOAT
NUMERIC
DECIMAL
CHAR
Answer explanation
DECIMAL is actually NUMERIC in SQL
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a TABLE command?
TRUNCATE
ALTER
UPDATE
DELETE
DROP
Answer explanation
insert, update, delete: data manipulation
create, alter, truncate, delete, drop: table manipulation
3.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Select all the kinds of Views in SQL:
Simple
Virtual
Materialized
Complex
Answer explanation
-Virtual = not stored in the database; just a query for constructing the
relation
- Materialized = actually constructed and stored
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How many primary keys a table can have?
1
0
2
Depends on no. of Columns
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not Constraint in SQL?
Primary Key
NOT NULL
Check
UNION
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to compare a value to a specified list of values?
ANY
BETWEEN
ALL
IN
Answer explanation
The IN operator easily tests the expression if it matches any value in a specified list of values. It reduces the use of multiple OR conditions.
The WHERE or HAVING clause uses the ANY and ALL operators. ANY gives the result when any subquery value matches the specified condition. The ALL give the result when all subquery values match the specified condition.
The BETWEEN operator selects values only in the given range.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator tests column for absence of data?
NOT Operator
EXISTS Operator
IS NULL Operator
None of the above
Answer explanation
The IS NULL operator is used to testing the empty values in the table's column. It returns true if column values are NULL.
The NOT operator gives the result only when the specified condition is not true.
The EXISTS operator used in combination with a subquery, and if a subquery returns any record, this operator returns true. Otherwise, it will return false.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Q2 - Python

Quiz
•
University
10 questions
Algoritma dan Pemrograman Bab 2

Quiz
•
University
10 questions
Problem Solving - Week 6 RECAP

Quiz
•
University
19 questions
Capsule session 1

Quiz
•
University
10 questions
Kuizi 2 - Python

Quiz
•
10th Grade - University
15 questions
SQL statements 1

Quiz
•
University
13 questions
Revision 2 MCA

Quiz
•
University
10 questions
Java Quiz 2 based on loop and if else

Quiz
•
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