SQL QUIZ
Quiz
•
Education
•
University
•
Medium
J Geetha priya
Used 23+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Consider the Employee Table with the following Attributes
employee(id, name, project_id, salary, city)
How to select all the records of the employees who does not belong to "Chennai" city from the "employee table" ?
select * from employee where city != ‘chennai’
select * from employee where city<>’chennai’
select * from employee where city like ‘chennai’
select [all] from employee where city<>’chennai’
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Consider the Employee Table with the following Attributes
Employee (id, name, project_id, salary, city)
Which one of the following is the correct SQL query to fetch the different projects available from the employee table?
select distinct (project_id) from employee;
select unique (project_id) from employee;
select unique project_id from employee;
select distinct project_id from employee;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Which of the following is not a valid aggregate function?
count
add
sum
max
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Which operator is used to compare a value to a specified list of values?
Any
Between
in
All
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. If we have not specified ASC or DESC after a SQL ORDER BY clause, the following is used by default
Desc
Asc
There is no default value
None of the above
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
6. What is returned by INSTR ('Hi! Welcome ’, 'c')?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. How can you change "Thomas" into "Michel" in the "LastName" column in the “Users” table?
UPDATE User SET LastName = 'Thomas' INTO LastName = 'Michel'
MODIFY Users SET LastName = 'Michel' WHERE LastName = 'Thomas'
MODIFY Users SET LastName = 'Thomas' INTO LastName = 'Michel'
UPDATE Users SET LastName = 'Michel' WHERE LastName = 'Thomas'
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Teaching terminologies
Quiz
•
University
10 questions
PE 03 Cheerleading: Seasons in the Life of a Cheerleader
Quiz
•
University
10 questions
United Nations
Quiz
•
5th Grade - University
15 questions
UK Education System
Quiz
•
University
11 questions
DEMAND AND SUPPLY
Quiz
•
University
7 questions
How Well Do You Know Our Leopard Cats?
Quiz
•
KG - Professional Dev...
10 questions
introduction to Anatomy
Quiz
•
University
15 questions
PRICING AND ITS OBJECTIVES
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Education
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
