Which SQL statement is used to retrieve all columns from the students table?

G10 End of Term 3

Quiz
•
Computers
•
12th Grade
•
Medium
Quốc Thư
Used 2+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SELECT * FROM *;
SELECT * FROM students;
GET * FROM students;
SHOW * FROM students;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword in SQL is used to filter out duplicate values in a column?
FILTER
UNIQUE
DISTINCT
SELECT UNIQUE
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement retrieves all students older than 18 from the students table?
SELECT * FROM students WHERE age > 18;
GET * FROM students WHERE age > 18;
SELECT ALL FROM students WHERE age > 18;
SHOW students WHERE age > 18;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL command is used to update a record in the employees table?
MODIFY employees SET salary = 5000 WHERE id = 1;
UPDATE employees SET salary = 5000 WHERE id = 1;
CHANGE employees SET salary = 5000 WHERE id = 1;
ALTER employees SET salary = 5000 WHERE id = 1;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you run the following query? DELETE FROM students WHERE age < 18;
All students will be deleted.
All students younger than 18 will be deleted.
The age column will be removed from the table.
The query will result in an error.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement uses the LIKE operator to retrieve all employees whose names start with 'A'?
SELECT * FROM employees WHERE name LIKE 'A%';
SELECT * FROM employees WHERE name = 'A%';
SELECT * FROM employees WHERE name CONTAINS 'A';
SELECT * FROM employees WHERE name STARTS WITH 'A';
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to get the number of rows in the orders table?
SELECT COUNT(*) FROM orders;
COUNT * FROM orders;
GET COUNT FROM orders;
SELECT TOTAL FROM orders;
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
sql queries - 2

Quiz
•
12th Grade
20 questions
A2 SQL Commands

Quiz
•
12th Grade
20 questions
Quiz Basis Data (Query)

Quiz
•
9th - 12th Grade
27 questions
My SQL

Quiz
•
11th - 12th Grade
20 questions
Unit 2, 3.5 Data analysis tools

Quiz
•
12th Grade
21 questions
Update Statements

Quiz
•
12th Grade
20 questions
DBASE BASICS

Quiz
•
12th Grade
20 questions
Topic 5 - Databases

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University