Search Header Logo

SQL Basic

Authored by Mary Miti

Instructional Technology

Professional Development

Used 1+ times

SQL Basic
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SQL query to find all the cities whose humidity is 95.

SELECT city WHERE humidity = 95

SELECT city FROM weather WHERE humidity = 95

SELECT humidity = 89 FROM weather

SELECT city FROM weather

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SQL query to find the temperature in increasing order of all cities.

SELECT city FROM weather ORDER BY temperature

SELECT city, temperature FROM weather

SELECT city, temperature FROM weather ORDER BY temperature

SELECT city, temperature FROM weather ORDER BY city

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The command to remove rows from a table ‘CUSTOMER’ is __________________

DROP FROM CUSTOMER

UPDATE FROM CUSTOMER

REMOVE FROM CUSTOMER

DELETE FROM CUSTOMER WHERE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

COUNT NUMBER()

NUMBER()

SUM()

COUNT(*)

5.

MULTIPLE CHOICE QUESTION

30 sec • 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

6.

MULTIPLE CHOICE QUESTION

30 sec • 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%’

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "S" in SQL stand for?

Several

Structured

Syntax

Semi-precise

Access all questions and much more by creating a free account

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?