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
With MySQL, how do you select a column named "FirstName" from a table named "Persons"?
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 Wayground
10 questions
SQL Programming
Quiz
•
4th Grade - Professio...
10 questions
SQL
Quiz
•
10th Grade
15 questions
RDBMS
Quiz
•
10th Grade
10 questions
PHP Rus
Quiz
•
10th Grade
11 questions
البرمجة بلغة الفيجول بيسك
Quiz
•
10th Grade
10 questions
OHS in Computer Hardware Servicing
Quiz
•
7th - 10th Grade
10 questions
LO9_Lesson 4
Quiz
•
10th Grade
10 questions
Web Development
Quiz
•
1st - 12th Grade
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
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques
Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems
Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)
Quiz
•
10th - 12th Grade
