1/18/23, 10:46 AM Basic SQL Quiz Online Test
Share Back (https://www.aliensbrain.com/topics/2/sql)
SQL (/topics/2) / Test your SQL fundamentals (/topics/2) / Basic SQL Quiz /
(https://www.facebook.com/dialog/share?
0 (/quiz/127/favourites)
app_id=1829093160660942&display=popup&href=https://aliensbr
sql-
quiz&redirect_uri=https://aliensbrain.com/quiz/127/basic-
sql-quiz)
Basic SQL Quiz
Description: Basic SQL Quiz
Number of Questions: 18
Created by: Aliensbrain Bot
Tags: sql (/tag/40/sql/quiz)
Start the Quiz (/quiz_events?quiz_id=127)
1.
What does SQL stand for?
Attem
(/question/1156/what-does-sql-stand-for)
sql (/tag/40/sql/question)
‹
A Strong Question Language
B Structured Question Language
✓ C Structured Query Language
Hide answer
Correct Option: C
2.
Which SQL statement is used to extract data from a database?
(/question/1157/which-sql-statement-is-used-to-extract-data-from-a-database)
sql (/tag/40/sql/question)
A GET
B OPEN
C EXTRACT
✓ D SELECT
E QUERY
Hide answer
Correct Option: D
3.
Which SQL statement is used to update data in a database?
(/question/1158/which-sql-statement-is-used-to-update-data-in-a-database)
sql (/tag/40/sql/question)
✓ A UPDATE
B SAVE AS
C MODIFY
D SAVE
Hide answer
https://www.aliensbrain.com/quiz/127/basic-sql-quiz 1/6
1/18/23, 10:46 AM Basic SQL Quiz Online Test
Correct Option: A
Ads by
Seen this ad Not interested Ad was
multiple times in this ad inappropriate
Stop seeing this ad Why this ad?
4.
Which SQL statement is used to delete data from a database?
(/question/1159/which-sql-statement-is-used-to-delete-data-from-a-database)
sql (/tag/40/sql/question)
A TRUNCATE
✓ B DELETE
C REMOVE
Hide answer
Correct Option: B
5.
Which SQL statement is used to insert new data in a database?
(/question/1160/which-sql-statement-is-used-to-insert-new-data-in-a-database)
sql (/tag/40/sql/question)
A ADD RECORD
B ADD INTO
✓ C INSERT
D ADD NEW
Hide answer
Correct Option: C
Attem
6.
‹
With SQL, how do you select a column named "FirstName" from a table named "Persons"?
(/question/1161/with-sql-how-do-you-select-a-column-named-firstname-from-a-t)
sql (/tag/40/sql/question)
A EXTRACT FirstName FROM Persons
✓ B SELECT FirstName FROM Persons
C SELECT Persons.FirstName
Hide answer
Correct Option: B
7.
With SQL, how do you select all the columns from a table named "Persons"?
(/question/1162/with-sql-how-do-you-select-all-the-columns-from-a-table-name)
sql (/tag/40/sql/question)
A SELECT [all] FROM Persons
B SELECT All Persons
C SELECT *.Persons
✓ D SELECT * FROM Persons
Hide answer
Correct Option: D
8.
With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?
(/question/1163/with-sql-how-do-you-select-all-the-records-from-a-table-name)
sql (/tag/40/sql/question)
A SELECT [all] FROM Persons WHERE FirstName='Peter'
B SELECT * FROM Persons WHERE FirstName LIKE 'Peter'
C SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
https://www.aliensbrain.com/quiz/127/basic-sql-quiz 2/6
1/18/23, 10:46 AM Basic SQL Quiz Online Test
✓ D SELECT * FROM Persons WHERE FirstName='Peter'
Hide answer
Correct Option: D
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/1164/with-sql-how-do-you-select-all-the-records-from-a-table-name)
sql (/tag/40/sql/question)
A SELECT * FROM Persons WHERE FirstName='%a%'
B SELECT * FROM Persons WHERE FirstName LIKE '%a'
C SELECT * FROM Persons WHERE FirstName='a'
✓ D SELECT * FROM Persons WHERE FirstName LIKE 'a%'
E SELECT * FROM Persons WHERE FirstName='a'"
Hide answer
Correct Option: D
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
sql (/tag/40/sql/question)
✓ A True
B False
Attem
Hide answer
‹
Correct Option: A
11.
Given an employees table as follows: empid name managerid a1 bob NULL b1 jim a1 B2 tom a1 What value will select count(*) from
employees return?
(/question/1176/given-an-employees-table-as-follows-empid-name-managerid-a1-)
sql (/tag/40/sql/question)
A 1
B 2
✓ C 3
D none of the above
Hide answer
Correct Option: C
12.
The result of a SELECT statement can contain duplicate rows.
(/question/1177/the-result-of-a-select-statement-can-contain-duplicate-rows)
sql (/tag/40/sql/question)
✓ A True
B False
Hide answer
Correct Option: A
13. Sometimes the expression "select count(*)" will return fewer rows than the expression "select count(value)".
sql (/tag/40/sql/question)
A True
✓ B False
https://www.aliensbrain.com/quiz/127/basic-sql-quiz 3/6
1/18/23, 10:46 AM Basic SQL Quiz Online Test
Hide answer
Correct Option: B
14.
What type of lock will deny users any access to a table?
(/question/1179/what-type-of-lock-will-deny-users-any-access-to-a-table)
sql (/tag/40/sql/question)
A EXPLICIT
B IMPLICIT
✓ C EXCLUSIVE
D SHARED
E READ ONLY
Hide answer
Correct Option: C
15. Which of the following is the correct SQL statement to use to remove rows from a table?
sql (/tag/40/sql/question)
A DROP
B REMOVE ROW
✓ C DELETE
D DELETE ROW
Hide answer Attem
Correct Option: C
‹
16. The only way to join two tables is by using standard, ANSI syntax.
sql (/tag/40/sql/question)
A True
✓ B False
Hide answer
Correct Option: B
17. A NULL value is treated as a blank or 0.
sql (/tag/40/sql/question)
A True
✓ B False
Hide answer
Correct Option: B
18.
The left outer join is one type of outer join. Another one is the.
https://www.aliensbrain.com/quiz/127/basic-sql-quiz 4/6
1/18/23, 10:46 AM Basic SQL Quiz Online Test
(/question/1183/the-left-outer-join-is-one-type-of-outer-join-another-one-is)
sql (/tag/40/sql/question)
A right
B full
C right outer
D full outer
✓ E all of the above
Hide answer
Correct Option: E
- Hide questions
Share this quiz with your friends
0 Comments Sort by Oldest
Add a comment...
Facebook Comments plugin
ADVERTISEMENT
Ads by
Send feedback
Attem
Why this ad?
‹
Find more quizzes from top tags
general knowledge (/tag/435/general-knowledge/quiz)
3600 Quizzes (/tag/435/general-knowledge/quiz) 119725 Questions (/tag/435/general-knowledge/question)
technology (/tag/268/technology/quiz)
307 Quizzes (/tag/268/technology/quiz) 36705 Questions (/tag/268/technology/question)
sports (/tag/437/sports/quiz)
962 Quizzes (/tag/437/sports/quiz) 19148 Questions (/tag/437/sports/question)
history (/tag/438/history/quiz)
1132 Quizzes (/tag/438/history/quiz) 13047 Questions (/tag/438/history/question)
physics (/tag/4456/physics/quiz)
550 Quizzes (/tag/4456/physics/quiz) 11687 Questions (/tag/4456/physics/question)
biology (/tag/2585/biology/quiz)
1078 Quizzes (/tag/2585/biology/quiz) 11791 Questions (/tag/2585/biology/question)
science & technology (/tag/436/science-technology/quiz)
551 Quizzes (/tag/436/science-technology/quiz) 11015 Questions (/tag/436/science-technology/question)
chemistry (/tag/5915/chemistry/quiz)
462 Quizzes (/tag/5915/chemistry/quiz) 9309 Questions (/tag/5915/chemistry/question)
maths (/tag/15085/maths/quiz)
https://www.aliensbrain.com/quiz/127/basic-sql-quiz 5/6
1/18/23, 10:46 AM Basic SQL Quiz Online Test
457 Quizzes (/tag/15085/maths/quiz) 8210 Questions (/tag/15085/maths/question)
softskills (/tag/449/softskills/quiz)
0 Quizzes (/tag/449/softskills/quiz) 7131 Questions (/tag/449/softskills/question)
© Aliensbrain | all rights reserved About (/about) Contact (/contact) Terms and Condition (/termsandcondition) Privacy Policy (/privacypolicy)
Attem
https://www.aliensbrain.com/quiz/127/basic-sql-quiz 6/6