SQL Quiz: 25 MCQs on the Student Table

Quiz
•
Computers
•
University
•
Medium
ARUN R
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL statement retrieves all columns from the students table?
GET FROM students;
SELECT FROM students;
FETCH FROM students;
SHOW FROM students;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you retrieve only the names of all students?
SELECT Name FROM students;
SHOW Name FROM students;
EXTRACT Name FROM students;
DISPLAY Name FROM students;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which clause is used to filter records based on a condition?
ORDER BY
WHERE
GROUP BY
HAVING
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following query return?
SELECT DISTINCT Department FROM students;
Number of departments
List of all unique departments
All student names
Count of students
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which query fetches students older than 21?
SELECT FROM students WHERE Age > 21;
SELECT FROM students WHERE Age >= 21;
SELECT FROM students HAVING Age > 21;
SELECT FROM students FILTER Age > 21;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you find students enrolled before 2023?
SELECT FROM students WHERE EnrollmentDate < '2023-01-01';
SELECT FROM students WHERE EnrollmentDate > '2023-01-01';
SELECT FROM students WHERE EnrollmentDate BETWEEN '2023-01-01' AND '2024-01-01';
SELECT FROM students ORDER BY EnrollmentDate;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL function counts the total number of students?
SUM(*)
COUNT(*)
TOTAL(*)
NUMBER(*)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Spreadsheet Fundamentals - Quiz2

Quiz
•
University
30 questions
Google Classroom as a SaaS

Quiz
•
12th Grade - University
30 questions
Quiz PBD 21 Sept 2023

Quiz
•
University
20 questions
Excel Basics for PYP 4

Quiz
•
4th Grade - University
25 questions
GCP-Quiz-1

Quiz
•
University - Professi...
20 questions
Computer Components practice

Quiz
•
University
24 questions
CIW IBA Lesson 3 Vocabulary

Quiz
•
8th Grade - Professio...
20 questions
IT Candidate

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University