Search Header Logo

MySQL SQL Queries

Authored by Tej Chand

Computers

12th Grade

Used 4+ times

MySQL SQL Queries
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

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

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?