MySQL SQL Queries

MySQL SQL Queries

12th Grade

15 Qs

quiz-placeholder

Similar activities

Pangkalan DATA SQL

Pangkalan DATA SQL

1st - 12th Grade

20 Qs

sql queries - 2

sql queries - 2

12th Grade

20 Qs

SQL

SQL

12th Grade

20 Qs

SQL

SQL

12th Grade

15 Qs

SQLDatabase

SQLDatabase

12th Grade

15 Qs

Chapter 9 - Databases (IGCSE Computer Science)

Chapter 9 - Databases (IGCSE Computer Science)

9th - 12th Grade

15 Qs

Introduction to MySQL

Introduction to MySQL

11th - 12th Grade

15 Qs

SQL Database

SQL Database

12th Grade

20 Qs

MySQL SQL Queries

MySQL SQL Queries

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Tej Chand

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the SQL keyword used to retrieve data from a database?

FETCH

RETRIEVE

SELECT

SEARCH

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you select all columns from a table named 'users'?

SELECT ALL FROM users;

SELECT columns FROM users;

SELECT users.*;

SELECT * FROM users;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the SQL query to filter records where the 'age' column is greater than 18?

SELECT * FROM table_name WHERE age > 18;

SELECT * FROM table_name WHERE age = 18;

SELECT * FROM table_name WHERE age < 18;

SELECT * FROM table_name WHERE age >= 18;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

By default, ORDER BY clause lists the results in _______________ order

Descending

Any

Same

Ascending

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following query

select * from employee order by salary _________, name ________;

To display the salary from greater to smaller and name in alphabetical order which of the following options should be used?

Ascending, Descending

Asc, Desc

Desc, Asc

Descending, Ascending

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

select correct SQL query from below 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;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

count( )

number( )

sum( )

count(*)

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?