SQL QUIZ

SQL QUIZ

University

10 Qs

quiz-placeholder

Similar activities

GK & Education 28.05.2020

GK & Education 28.05.2020

University

10 Qs

English Language Teaching and Education in Thailand

English Language Teaching and Education in Thailand

University

10 Qs

Thompson ch 9

Thompson ch 9

University

10 Qs

ASL1 M3 Learning Targets

ASL1 M3 Learning Targets

University

15 Qs

Healthy Food

Healthy Food

KG - Professional Development

15 Qs

SDG YOUTH DIALOGUE 24'

SDG YOUTH DIALOGUE 24'

University

13 Qs

Communication Tools

Communication Tools

University

10 Qs

HAMMER THROW

HAMMER THROW

4th Grade - Professional Development

10 Qs

SQL QUIZ

SQL QUIZ

Assessment

Quiz

Education

University

Medium

Created by

J Geetha priya

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?