
MySQL SQL Queries
Authored by Tej Chand
Computers
12th Grade
Used 4+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Selection Control Structure Quiz
Quiz
•
6th Grade - University
20 questions
Quiz
•
7th - 12th Grade
10 questions
Internet Technologies
Quiz
•
12th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
17 questions
Quiz 01 Keamanan Jaringan
Quiz
•
12th Grade
14 questions
TCP/IP & other protocols [A Level]
Quiz
•
12th Grade
10 questions
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
14 questions
Copyright Quiz Stolen from eff.org
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade