Online SQL Quiz for Programmers
Job-ready Online Courses: Click, Learn, Succeed, Start Now!
Today we will work on some interesting SQL quiz questions. In the quiz, we will focus on practical aspects and theoretical aspects both. SQL is widely used in every industry these days. Let’s get going now.
Do not miss to attempt other parts of the SQL Online Quizzes:
- SQL Quiz – 1
- SQL Quiz – 2
- SQL Quiz – 3
Quiz Summary
0 of 25 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 25 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
- Question 1 of 25
1. Question
Which of the following triggers are not available for MySQL?
CorrectIncorrect - Question 2 of 25
2. Question
Which of the query below is used to put a value in a variable we need to define for our SQL query?
CorrectIncorrect - Question 3 of 25
3. Question
Write a query to display the base pay and name of each employee at DataFlair using the following formula to calculate base pay:
BP = 20000 + (experience*5000)
Also, display the results with the highest-paid employee being the first.CorrectIncorrect - Question 4 of 25
4. Question
Write a query to find the company domain mail-id of each employee at DataFlair. Given the company domain being @dataflair.com.
CorrectIncorrect - Question 5 of 25
5. Question
In SQL the package definition is made up of which two elements?
CorrectIncorrect - Question 6 of 25
6. Question
What are the data definition commands in SQL known as popularly?
CorrectIncorrect - Question 7 of 25
7. Question
Which type of join is the query written below?
SELECT *
FROM tableName1
INNER JOIN tableName2
ON tableName1.matchingColumn = tableName2.matchingColumn ;CorrectIncorrect - Question 8 of 25
8. Question
What is the major difference in the operation of the UNION and UNION ALL clause in SQL?
CorrectIncorrect - Question 9 of 25
9. Question
Which of the queries below can be used to alter the DataFlair table such that we can add a new gender column to our table?
CorrectIncorrect - Question 10 of 25
10. Question
Which of the following query if run will Truncate the DataFlair table?
CorrectIncorrect - Question 11 of 25
11. Question
Write a query in SQL using just two words to extract the time of the system as of now?
CorrectIncorrect - Question 12 of 25
12. Question
Write a query to find the second employee in terms of experience in increasing order? (first being the one with max experience)
CorrectIncorrect - Question 13 of 25
13. Question
We can’t use subqueries with which of the clauses given below?
CorrectIncorrect - Question 14 of 25
14. Question
Which of the following is a type of subquery we can use in SQL?
CorrectIncorrect - Question 15 of 25
15. Question
Which of the following is not a built-in function in SQL?
CorrectIncorrect - Question 16 of 25
16. Question
What is the difference if we truncate a table and if we drop a table?
CorrectIncorrect - Question 17 of 25
17. Question
Which of the below queries can be used to rename the table DataFlair to DataFlair_Info?
CorrectIncorrect - Question 18 of 25
18. Question
Which of the following query is correct to perform union on DataFlair and location tables?
CorrectIncorrect - Question 19 of 25
19. Question
Which all languages support the integration of SQL with them?
CorrectIncorrect - Question 20 of 25
20. Question
When the SQL query is executed the result is?
CorrectIncorrect - Question 21 of 25
21. Question
Write a query to find the average pay of employees at Dataflair assuming that the pay of each is calculated by the formula Pay = (experience*1.5*10000).
CorrectIncorrect - Question 22 of 25
22. Question
Write a query to draw out details of all the employees whose name starts with ‘A’ or are based in Pune.
CorrectIncorrect - Question 23 of 25
23. Question
Which of the following query returns the results in ascending order of the experience column?
CorrectIncorrect - Question 24 of 25
24. Question
Which of the following is the type of trigger available in SQL?
CorrectIncorrect - Question 25 of 25
25. Question
What is the major difference between the implicit and explicit cursor?
CorrectIncorrect
Summary
Here we complete the online SQL quiz. Don’t forget to drop your score in the comments. Also for any confusion refer to the topic-wise tutorials. If the query remains unsolved don’t hesitate to ask in the comments and we will get back to you.
Your 15 seconds will encourage us to work even harder
Please share your happy experience on Google
17
its very nice for the beginers to follow the above quiz.
11
15
19