SlideShare a Scribd company logo
4
Most read
5
Most read
6
Most read
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 1/15
SQL Quiz Results
Score: 22 of 25
88% Correct:
Question 1:
What does SQL stand for?
Question 2:
Which SQL statement is used to extract data from a database?
SAMSUNG CHROMEBOOK PLUS …
$329.99
Structured Query Language     Your answer  
Strong Question Language
Structured Question Language
SELECT     Your answer  
GET
EXTRACT
w3schools.com
HTML CSS MORE   
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 2/15
Question 3:
Which SQL statement is used to update data in a database?
Question 4:
Which SQL statement is used to delete data from a database?
Question 5:
Which SQL statement is used to insert new data in a database?
OPEN
UPDATE     Your answer  
SAVE
SAVE AS
MODIFY
DELETE     Your answer  
REMOVE
COLLAPSE
INSERT INTO     Your answer  
ADD NEW
INSERT NEW
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 3/15
Question 6:
With SQL, how do you select a column named "FirstName" from a table named
"Persons"?
Question 7:
With SQL, how do you select all the columns from a table named "Persons"?
Question 8:
With SQL, how do you select all the records from a table named "Persons" where the
value of the column "FirstName" is "Peter"?
ADD RECORD
SELECT FirstName FROM Persons     Your answer  
SELECT Persons.FirstName
EXTRACT FirstName FROM Persons
SELECT * FROM Persons     Your answer  
SELECT [all] FROM Persons
SELECT *.Persons
SELECT Persons
SELECT * FROM Persons WHERE FirstName='Peter'     Your answer  
SELECT * FROM Persons WHERE FirstName<>'Peter'
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 4/15
Question 9:
With SQL, how do you select all the records from a table named "Persons" where the
value of the column "FirstName" starts with an "a"?
Question 10:
The OR operator displays a record if ANY conditions listed are true. The AND operator
displays a record if ALL of the conditions listed are true
Question 11:
With SQL, how do you select all the records from a table named "Persons" where the
"FirstName" is "Peter" and the "LastName" is "Jackson"?
SELECT [all] FROM Persons WHERE FirstName='Peter'
SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
SELECT * FROM Persons WHERE FirstName LIKE 'a%'     Your answer  
SELECT * FROM Persons WHERE FirstName LIKE '%a'
SELECT * FROM Persons WHERE FirstName='%a%'
SELECT * FROM Persons WHERE FirstName='a'
True     Your answer  
False
SELECT * FROM Persons WHERE FirstName='Peter' AND
LastName='Jackson'  
   Your answer  
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 5/15
Question 12:
With SQL, how do you select all the records from a table named "Persons" where the
"LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?
Question 13:
Which SQL statement is used to return only different values?
Question 14:
Which SQL keyword is used to sort the result-set?
SELECT FirstName='Peter', LastName='Jackson' FROM Persons
SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'
SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen'
AND 'Pettersen'  
   Your answer  
SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'
SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons
SELECT DISTINCT     Your answer  
SELECT UNIQUE
SELECT DIFFERENT
ORDER BY     Your answer  
ORDER
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 6/15
Question 15:
With SQL, how can you return all the records from a table named "Persons" sorted
descending by "FirstName"?
Question 16:
With SQL, how can you insert a new record into the "Persons" table?
Question 17:
With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?
SORT
SORT BY
SELECT * FROM Persons ORDER BY FirstName DESC     Your answer  
SELECT * FROM Persons ORDER FirstName DESC
SELECT * FROM Persons SORT BY 'FirstName' DESC
SELECT * FROM Persons SORT 'FirstName' DESC
INSERT INTO Persons VALUES ('Jimmy', 'Jackson')     Your answer  
INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
INSERT ('Jimmy', 'Jackson') INTO Persons
INSERT INTO Persons (LastName) VALUES ('Olsen')     Your answer  
INSERT ('Olsen') INTO Persons (LastName)
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 7/15
Question 18:
How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons
table?
Question 19:
With SQL, how can you delete the records where the "FirstName" is "Peter" in the
Persons Table?
Question 20:
With SQL, how can you return the number of records in the "Persons" table?
INSERT INTO Persons ('Olsen') INTO LastName
MODIFY Persons SET LastName='Hansen' INTO
LastName='Nilsen  
   Your answer  
MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
UPDATE Persons SET LastName='Nilsen' WHERE
LastName='Hansen'  
  Correct answer  
UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
DELETE FROM Persons WHERE FirstName = 'Peter'     Your answer  
DELETE FirstName='Peter' FROM Persons
DELETE ROW FirstName='Peter' FROM Persons
SELECT COUNT(*) FROM Persons     Your answer  
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 8/15
Question 21:
What is the most common type of join?
Question 22:
Which operator is used to select values within a range?
Question 23:
The NOT NULL constraint enforces a column to not accept null values.
SELECT COLUMNS(*) FROM Persons
SELECT LEN(*) FROM Persons
SELECT NO(*) FROM Persons
INNER JOIN     Your answer  
JOINED TABLE
INSIDE JOIN
JOINED
BETWEEN     Your answer  
RANGE
WITHIN
False     Your answer  
8/1/2019 W3Schools Quiz Results
https://www.w3schools.com/quiztest/result.asp 9/15
Question 24:
Which operator is used to search for a specified pattern in a column?
Question 25:
Which SQL statement is used to create a table in a database?
Close Quiz Results
True     Correct answer  
GET     Your answer  
FROM
LIKE     Correct answer  
CREATE TABLE     Your answer  
CREATE DATABASE TABLE
CREATE DATABASE TAB
CREATE DB

More Related Content

PDF
Reunion 20 Hipodromo La Rinconada 010625.pdf
PDF
Copy of History SBA .pdf
PDF
CSEC® 2021 Merit List by Subject from Caribbean Examinations Council
PDF
PPTX
O Level Paper 2 database All topics of chapter
PPTX
Advanced Database Systems - Presentation 4.pptx
PPTX
SQL Where Clause.pptx
PPT
CE 279 - WRITING SQL QUERIES umat edition.ppt
Reunion 20 Hipodromo La Rinconada 010625.pdf
Copy of History SBA .pdf
CSEC® 2021 Merit List by Subject from Caribbean Examinations Council
O Level Paper 2 database All topics of chapter
Advanced Database Systems - Presentation 4.pptx
SQL Where Clause.pptx
CE 279 - WRITING SQL QUERIES umat edition.ppt

Similar to SQL Quiz (7)

DOC
Learn sql queries
DOCX
SQL commands.docx
PDF
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...
DOC
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDS
DOCX
PPT
MS SQL Server 1
DOCX
Please accept this assignment if youre good in SQL!Task.docx
Learn sql queries
SQL commands.docx
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDS
MS SQL Server 1
Please accept this assignment if youre good in SQL!Task.docx
Ad

More from BiancaPapapietro (11)

PPTX
Consuming Ads
PDF
YouTube Canada Capstone
PPTX
UX/UI Ideas
PDF
Flowchart for AGNM Project
PDF
UX Design Submission for AGNM Project
PDF
SQL Entry Level Test Results
DOCX
Analyst Skillsheet
PPTX
Resource Guid
PPTX
The Switch to Office365
PPTX
An Introduction to PowerPoint
PPTX
The Process Storyboard
Consuming Ads
YouTube Canada Capstone
UX/UI Ideas
Flowchart for AGNM Project
UX Design Submission for AGNM Project
SQL Entry Level Test Results
Analyst Skillsheet
Resource Guid
The Switch to Office365
An Introduction to PowerPoint
The Process Storyboard
Ad

Recently uploaded (20)

PDF
Why Today’s Brands Need ORM & SEO Specialists More Than Ever.pdf
PDF
APNCET2025RESULT Result Result 2025 2025
PDF
esg-supply-chain-webinar-nov2018hkhkkh.pdf
PPTX
internship presentation of bsnl in colllege
PPTX
microtomy kkk. presenting to cryst in gl
PPTX
Sports and Dance -lesson 3 powerpoint presentation
PPTX
Slideham presentation for the students a
PDF
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
PDF
Beginner’s Guide to Digital Marketing.pdf
DOCX
mcsp232projectguidelinesjan2023 (1).docx
PPTX
_Dispute Resolution_July 2022.pptxmhhghhhh
PDF
313302 DBMS UNIT 1 PPT for diploma Computer Eng Unit 2
PPT
BCH3201 (Enzymes and biocatalysis)-JEB (1).ppt
PPT
2- CELL INJURY L1 Medical (2) gggggggggg
PPTX
Condensed_Food_Science_Lecture1_Precised.pptx
PDF
Biography of Mohammad Anamul Haque Nayan
PDF
CV of Architect Professor A F M Mohiuddin Akhand.pdf
PPT
NO000387 (1).pptsbsnsnsnsnsnsnsmsnnsnsnsjsnnsnsnsnnsnnansnwjwnshshshs
PDF
MCQ Practice CBT OL Official Language 1.pptx.pdf
PPTX
PE3-WEEK-3sdsadsadasdadadwadwdsdddddd.pptx
Why Today’s Brands Need ORM & SEO Specialists More Than Ever.pdf
APNCET2025RESULT Result Result 2025 2025
esg-supply-chain-webinar-nov2018hkhkkh.pdf
internship presentation of bsnl in colllege
microtomy kkk. presenting to cryst in gl
Sports and Dance -lesson 3 powerpoint presentation
Slideham presentation for the students a
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
Beginner’s Guide to Digital Marketing.pdf
mcsp232projectguidelinesjan2023 (1).docx
_Dispute Resolution_July 2022.pptxmhhghhhh
313302 DBMS UNIT 1 PPT for diploma Computer Eng Unit 2
BCH3201 (Enzymes and biocatalysis)-JEB (1).ppt
2- CELL INJURY L1 Medical (2) gggggggggg
Condensed_Food_Science_Lecture1_Precised.pptx
Biography of Mohammad Anamul Haque Nayan
CV of Architect Professor A F M Mohiuddin Akhand.pdf
NO000387 (1).pptsbsnsnsnsnsnsnsmsnnsnsnsjsnnsnsnsnnsnnansnwjwnshshshs
MCQ Practice CBT OL Official Language 1.pptx.pdf
PE3-WEEK-3sdsadsadasdadadwadwdsdddddd.pptx

SQL Quiz

  • 1. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 1/15 SQL Quiz Results Score: 22 of 25 88% Correct: Question 1: What does SQL stand for? Question 2: Which SQL statement is used to extract data from a database? SAMSUNG CHROMEBOOK PLUS … $329.99 Structured Query Language     Your answer   Strong Question Language Structured Question Language SELECT     Your answer   GET EXTRACT w3schools.com HTML CSS MORE   
  • 2. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 2/15 Question 3: Which SQL statement is used to update data in a database? Question 4: Which SQL statement is used to delete data from a database? Question 5: Which SQL statement is used to insert new data in a database? OPEN UPDATE     Your answer   SAVE SAVE AS MODIFY DELETE     Your answer   REMOVE COLLAPSE INSERT INTO     Your answer   ADD NEW INSERT NEW
  • 3. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 3/15 Question 6: With SQL, how do you select a column named "FirstName" from a table named "Persons"? Question 7: With SQL, how do you select all the columns from a table named "Persons"? Question 8: With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"? ADD RECORD SELECT FirstName FROM Persons     Your answer   SELECT Persons.FirstName EXTRACT FirstName FROM Persons SELECT * FROM Persons     Your answer   SELECT [all] FROM Persons SELECT *.Persons SELECT Persons SELECT * FROM Persons WHERE FirstName='Peter'     Your answer   SELECT * FROM Persons WHERE FirstName<>'Peter'
  • 4. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 4/15 Question 9: With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"? Question 10: The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true Question 11: With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"? SELECT [all] FROM Persons WHERE FirstName='Peter' SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter' SELECT * FROM Persons WHERE FirstName LIKE 'a%'     Your answer   SELECT * FROM Persons WHERE FirstName LIKE '%a' SELECT * FROM Persons WHERE FirstName='%a%' SELECT * FROM Persons WHERE FirstName='a' True     Your answer   False SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'      Your answer  
  • 5. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 5/15 Question 12: With SQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"? Question 13: Which SQL statement is used to return only different values? Question 14: Which SQL keyword is used to sort the result-set? SELECT FirstName='Peter', LastName='Jackson' FROM Persons SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson' SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'      Your answer   SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen' SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons SELECT DISTINCT     Your answer   SELECT UNIQUE SELECT DIFFERENT ORDER BY     Your answer   ORDER
  • 6. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 6/15 Question 15: With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"? Question 16: With SQL, how can you insert a new record into the "Persons" table? Question 17: With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table? SORT SORT BY SELECT * FROM Persons ORDER BY FirstName DESC     Your answer   SELECT * FROM Persons ORDER FirstName DESC SELECT * FROM Persons SORT BY 'FirstName' DESC SELECT * FROM Persons SORT 'FirstName' DESC INSERT INTO Persons VALUES ('Jimmy', 'Jackson')     Your answer   INSERT VALUES ('Jimmy', 'Jackson') INTO Persons INSERT ('Jimmy', 'Jackson') INTO Persons INSERT INTO Persons (LastName) VALUES ('Olsen')     Your answer   INSERT ('Olsen') INTO Persons (LastName)
  • 7. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 7/15 Question 18: How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table? Question 19: With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table? Question 20: With SQL, how can you return the number of records in the "Persons" table? INSERT INTO Persons ('Olsen') INTO LastName MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen      Your answer   MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen' UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'     Correct answer   UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen' DELETE FROM Persons WHERE FirstName = 'Peter'     Your answer   DELETE FirstName='Peter' FROM Persons DELETE ROW FirstName='Peter' FROM Persons SELECT COUNT(*) FROM Persons     Your answer  
  • 8. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 8/15 Question 21: What is the most common type of join? Question 22: Which operator is used to select values within a range? Question 23: The NOT NULL constraint enforces a column to not accept null values. SELECT COLUMNS(*) FROM Persons SELECT LEN(*) FROM Persons SELECT NO(*) FROM Persons INNER JOIN     Your answer   JOINED TABLE INSIDE JOIN JOINED BETWEEN     Your answer   RANGE WITHIN False     Your answer  
  • 9. 8/1/2019 W3Schools Quiz Results https://www.w3schools.com/quiztest/result.asp 9/15 Question 24: Which operator is used to search for a specified pattern in a column? Question 25: Which SQL statement is used to create a table in a database? Close Quiz Results True     Correct answer   GET     Your answer   FROM LIKE     Correct answer   CREATE TABLE     Your answer   CREATE DATABASE TABLE CREATE DATABASE TAB CREATE DB