SQL Quiz: 25 MCQs on the Student Table

SQL Quiz: 25 MCQs on the Student Table

University

25 Qs

quiz-placeholder

Similar activities

Midterm Exam - DV - Part 1

Midterm Exam - DV - Part 1

University

20 Qs

MIDTERM_EMBEDDED

MIDTERM_EMBEDDED

University

20 Qs

DWDM Unit1 Quiz

DWDM Unit1 Quiz

University

21 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

NACOS Kahoot Session II

NACOS Kahoot Session II

University

20 Qs

INTRODUCTION TO BIOMETRICS

INTRODUCTION TO BIOMETRICS

University

20 Qs

IT Application Tools in Business - Prelim Exam

IT Application Tools in Business - Prelim Exam

University

20 Qs

SQL Quiz: 25 MCQs on the Student Table

SQL Quiz: 25 MCQs on the Student Table

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

ARUN R

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?