With MySQL, how do you select a column named "FirstName" from a table named "Persons"?
MySQL Basic Syntax (Reviewer)

Quiz
•
Computers
•
10th Grade
•
Hard
JOSEPH ALMONTE
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
SELECT Persons.FirstName
EXTRACT FirstName FROM Persons
SELECT FirstName FROM Persons
SELECT * FROM Persons
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
With MySQL, how do you select all the columns from a table named "Persons"?
SELECT *.Persons
SELECT [all] FROM Persons
SELECT * FROM Persons
SELECT Column Persons
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
With MySQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?
SELECT [all] FROM Persons WHERE FirstName='Peter'
SELECT * FROM Persons WHERE FirstName<>'Peter'
SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
SELECT * FROM Persons WHERE FirstName='Peter'
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
With MySQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?
SELECT * FROM Persons WHERE FirstName='%a%'
SELECT * FROM Persons WHERE FirstName='a'
SELECT * FROM Persons WHERE FirstName LIKE 'a%'
SELECT * FROM Persons WHERE FirstName LIKE '%a'
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
With MySQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?
SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons
SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'
SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
With MySQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?
SELECT * FROM Persons SORT 'FirstName' DESC
SELECT * FROM Persons ORDER FirstName DESC
SELECT * FROM Persons SORT BY 'FirstName' DESC
SELECT * FROM Persons ORDER BY FirstName DESC
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
With MySQL, how can you insert a new record into the "Persons" table?
INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
INSERT ('Jimmy', 'Jackson') INTO Persons
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
10 questions
Database

Quiz
•
8th - 12th Grade
10 questions
SQL and databases

Quiz
•
KG - 12th Grade
15 questions
UNIT 1: DIGITAL DOCUMENTATION (ADVANCED)

Quiz
•
10th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
CPA CPF4 Internet Applications

Quiz
•
7th - 12th Grade
8 questions
String Handling in Java

Quiz
•
10th Grade
15 questions
Word Lesson 6

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade