SlideShare a Scribd company logo
1 of 9
Download to read offline
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

Similar to SQL Quiz

Learn sql queries
Learn sql queriesLearn sql queries
Learn sql queriesSanjay Mago
 
SQL commands.docx
SQL commands.docxSQL commands.docx
SQL commands.docxAnupJoshi46
 
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...ProductCamp Boston
 
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDS
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDSORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDS
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDSNewyorksys.com
 
MS SQL Server 1
MS SQL Server 1MS SQL Server 1
MS SQL Server 1Iblesoft
 
Please accept this assignment if youre good in SQL!Task.docx
Please accept this assignment if youre good in SQL!Task.docxPlease accept this assignment if youre good in SQL!Task.docx
Please accept this assignment if youre good in SQL!Task.docxneedhamserena
 

Similar to SQL Quiz (7)

Learn sql queries
Learn sql queriesLearn sql queries
Learn sql queries
 
SQL commands.docx
SQL commands.docxSQL commands.docx
SQL commands.docx
 
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...
How to Leverage Usage Data to Drive Product Messaging and Adoption - Rachel S...
 
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDS
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDSORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDS
ORACLE PL/SQL TUTORIALS - OVERVIEW - SQL COMMANDS
 
Sql
SqlSql
Sql
 
MS SQL Server 1
MS SQL Server 1MS SQL Server 1
MS SQL Server 1
 
Please accept this assignment if youre good in SQL!Task.docx
Please accept this assignment if youre good in SQL!Task.docxPlease accept this assignment if youre good in SQL!Task.docx
Please accept this assignment if youre good in SQL!Task.docx
 

More from BiancaPapapietro

More from BiancaPapapietro (11)

Consuming Ads
Consuming AdsConsuming Ads
Consuming Ads
 
YouTube Canada Capstone
YouTube Canada CapstoneYouTube Canada Capstone
YouTube Canada Capstone
 
UX/UI Ideas
UX/UI IdeasUX/UI Ideas
UX/UI Ideas
 
Flowchart for AGNM Project
Flowchart for AGNM ProjectFlowchart for AGNM Project
Flowchart for AGNM Project
 
UX Design Submission for AGNM Project
UX Design Submission for AGNM ProjectUX Design Submission for AGNM Project
UX Design Submission for AGNM Project
 
SQL Entry Level Test Results
SQL Entry Level Test ResultsSQL Entry Level Test Results
SQL Entry Level Test Results
 
Analyst Skillsheet
Analyst SkillsheetAnalyst Skillsheet
Analyst Skillsheet
 
Resource Guid
Resource GuidResource Guid
Resource Guid
 
The Switch to Office365
The Switch to Office365The Switch to Office365
The Switch to Office365
 
An Introduction to PowerPoint
An Introduction to PowerPointAn Introduction to PowerPoint
An Introduction to PowerPoint
 
The Process Storyboard
The Process StoryboardThe Process Storyboard
The Process Storyboard
 

Recently uploaded

VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...Suhani Kapoor
 
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一Fs sss
 
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...Suhani Kapoor
 
Gray Gold Clean CV Resume2024tod (1).pdf
Gray Gold Clean CV Resume2024tod (1).pdfGray Gold Clean CV Resume2024tod (1).pdf
Gray Gold Clean CV Resume2024tod (1).pdfpadillaangelina0023
 
定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一
定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一
定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一z xss
 
tools in IDTelated to first year vtu students is useful where they can refer ...
tools in IDTelated to first year vtu students is useful where they can refer ...tools in IDTelated to first year vtu students is useful where they can refer ...
tools in IDTelated to first year vtu students is useful where they can refer ...vinbld123
 
Issues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptxIssues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptxJenniferPeraro1
 
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位obuhobo
 
VIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service Cuttack
VIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service CuttackVIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service Cuttack
VIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service CuttackSuhani Kapoor
 
加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdf
加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdf加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdf
加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdfobuhobo
 
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call GirlsSonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call GirlsNiya Khan
 
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一A SSS
 
Black and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdfBlack and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdfpadillaangelina0023
 
办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一
办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一
办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一F La
 
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...Suhani Kapoor
 
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiVIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Preventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxPreventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxGry Tina Tinde
 
NPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdfNPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdfDivyeshPatel234692
 
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改yuu sss
 
阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)
阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)
阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)obuhobo
 

Recently uploaded (20)

VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
 
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一 定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
定制(UOIT学位证)加拿大安大略理工大学毕业证成绩单原版一比一
 
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
 
Gray Gold Clean CV Resume2024tod (1).pdf
Gray Gold Clean CV Resume2024tod (1).pdfGray Gold Clean CV Resume2024tod (1).pdf
Gray Gold Clean CV Resume2024tod (1).pdf
 
定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一
定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一
定制(SCU毕业证书)南十字星大学毕业证成绩单原版一比一
 
tools in IDTelated to first year vtu students is useful where they can refer ...
tools in IDTelated to first year vtu students is useful where they can refer ...tools in IDTelated to first year vtu students is useful where they can refer ...
tools in IDTelated to first year vtu students is useful where they can refer ...
 
Issues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptxIssues in the Philippines (Unemployment and Underemployment).pptx
Issues in the Philippines (Unemployment and Underemployment).pptx
 
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
 
VIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service Cuttack
VIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service CuttackVIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service Cuttack
VIP Call Girl Cuttack Aashi 8250192130 Independent Escort Service Cuttack
 
加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdf
加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdf加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdf
加利福尼亚大学伯克利分校硕士毕业证成绩单(价格咨询)学位证书pdf
 
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call GirlsSonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
 
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
 
Black and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdfBlack and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdf
 
办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一
办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一
办理(NUS毕业证书)新加坡国立大学毕业证成绩单原版一比一
 
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
 
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiVIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
 
Preventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxPreventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptx
 
NPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdfNPPE STUDY GUIDE - NOV2021_study_104040.pdf
NPPE STUDY GUIDE - NOV2021_study_104040.pdf
 
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
 
阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)
阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)
阿德莱德大学本科毕业证成绩单咨询(书英文硕士学位证)
 

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