SQL

SQL

11th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

INTERNET CONNECTION

INTERNET CONNECTION

12th Grade

13 Qs

flowol week 3

flowol week 3

9th - 12th Grade

17 Qs

Microsoft Access

Microsoft Access

10th Grade - Professional Development

10 Qs

Virtual Private Server

Virtual Private Server

12th Grade

15 Qs

Bài 15. Bảo mật và an toàn hệ cơ sở dữ liệu

Bài 15. Bảo mật và an toàn hệ cơ sở dữ liệu

11th Grade

10 Qs

Input Devices of Computer

Input Devices of Computer

11th Grade

10 Qs

VB Controls

VB Controls

11th Grade

10 Qs

ITGS - IT Systems (Hardware)

ITGS - IT Systems (Hardware)

10th - 12th Grade

14 Qs

SQL

SQL

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Medium

CCSS
6.SP.B.4, HSS.ID.A.1

Standards-aligned

Created by

Sumit Choudhary

Used 2K+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which SQL function is used to count the number of rows in a SQL query?

COUNT()

NUMBER()

SUM()

COUNT(*)

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following SQL clauses is used to DELETE tuples from a database table?

DELETE

REMOVE

DROP

CLEAR

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If you don’t specify ASC or DESC after a SQL ORDER BY clause, the following is used by default

ASC

DESC

There is no default value

None of the mentioned

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” ends with an “a”?

SELECT * FROM Persons WHERE FirstName=’a’

SELECT * FROM Persons WHERE FirstName LIKE ‘a%’

SELECT * FROM Persons WHERE FirstName LIKE ‘%a’

SELECT * FROM Persons WHERE FirstName=’%a%’

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What does the ALTER TABLE clause do?

The SQL ALTER TABLE clause modifies a table definition by altering, adding, or deleting table columns and/or constraints

The SQL ALTER TABLE clause is used to insert data into database table

THE SQL ALTER TABLE deletes data from database table

The SQL ALTER TABLE clause is used to delete a database table

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The UPDATE SQL clause can _____________

update only one row at a time

update more than one row at a time

delete more than one row at a time

delete only one row at a time

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How can you change “Hansen” into “Nilsen” in the “LastName” column in the Persons table?

UPDATE Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

MODIFY Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

MODIFY Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

UPDATE Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

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

Already have an account?