MySQL Basic Syntax (Reviewer)
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
JOSEPH ALMONTE
Used 10+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Excel VBA
Quiz
•
10th Grade
10 questions
HT3 Digital Graphics
Quiz
•
KG - 12th Grade
10 questions
Fun with Paint and Storage
Quiz
•
1st Grade - University
10 questions
ICT Quiz
Quiz
•
4th - 12th Grade
12 questions
Computer Basics
Quiz
•
6th - 12th Grade
12 questions
RO81 File Formats [Revision #1]
Quiz
•
9th - 11th Grade
15 questions
Internet Basics
Quiz
•
5th Grade - University
15 questions
Pretest Aplikasi Pengolah Angka
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
