introduction to sql

introduction to sql

University

10 Qs

quiz-placeholder

Similar activities

RDBMS

RDBMS

University

15 Qs

DDL

DDL

University

15 Qs

MySQL básico (criar e ler registros)

MySQL básico (criar e ler registros)

University

8 Qs

Cuestionario de SQL

Cuestionario de SQL

University

14 Qs

Database- SQL

Database- SQL

University

15 Qs

SQL Programming

SQL Programming

4th Grade - Professional Development

10 Qs

SQL statements 1

SQL statements 1

University

15 Qs

QUIZ ON SQL

QUIZ ON SQL

University

10 Qs

introduction to sql

introduction to sql

Assessment

Quiz

Computers

University

Medium

Created by

Nurasma Shamsuddin

Used 54+ times

FREE Resource

10 questions

Show all answers

1.

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(*)

2.

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

3.

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%’

4.

MULTIPLE CHOICE QUESTION

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

5.

MULTIPLE CHOICE QUESTION

45 sec • 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’

6.

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

7.

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?