SQL Online Quiz Questions and Answers
Placement-ready Courses: Enroll Now, Thank us Later!
Here we have another amazing SQL Online quiz for programmers who wish to make their career in SQL. As SQL is very much popular these days, will suggest you go through the quiz properly before appearing for any interviews.
Do not miss to attempt other parts on SQL Quizzes as well once you are done with this part:
- 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
Consider the below-shown database and write a query to get the employee details whose name starts with ‘A’.
CorrectIncorrect - Question 2 of 25
2. Question
Consider the below-shown database and write a query to find the average experience of all the employees at DataFlair.
CorrectIncorrect - Question 3 of 25
3. Question
Consider the below-shown database and write a query to draw out details of employees from Pune and Indore with experience of 2 years or more in DataFlair.
CorrectIncorrect - Question 4 of 25
4. Question
Consider the below-shown database and write a query to count the number of employees at each location of the DataFlair office.
CorrectIncorrect - Question 5 of 25
5. Question
Consider the below-shown database and write a query to display the top 5 employees based on their experience of working in the field.
CorrectIncorrect - Question 6 of 25
6. Question
Which of the query below is likely to run into an error?
CorrectIncorrect - Question 7 of 25
7. Question
Which of the below queries results have only 10 rows being shown in the result displayed?
CorrectIncorrect - Question 8 of 25
8. Question
Which of the following commands do we need to run to select a database for our queries to be run on?
CorrectIncorrect - Question 9 of 25
9. Question
Predict the expected output of the query given below:
SELECT salary*10 AS New_Salary FROM DataFlair;CorrectIncorrect - Question 10 of 25
10. Question
What happens when we run the below query but emp_id ‘AR5’ doesn’t exist in our table.
SELECT * FROM DataFlair_info WHERE emp_id = ‘AR5’CorrectIncorrect - Question 11 of 25
11. Question
Which of the below Query can be used to set the new Auto – increment value to 500 in our table.
CorrectIncorrect - Question 12 of 25
12. Question
Which of the following returns the average value of any numeric column in SQL?
CorrectIncorrect - Question 13 of 25
13. Question
Choose the correct query using the IFNULL function of SQL to replace the NULL value in the experience column of DataFlair with 0.
CorrectIncorrect - Question 14 of 25
14. Question
Which of the following query uses the Default constraint to set the default value of experience to 0?
CorrectIncorrect - Question 15 of 25
15. Question
Which of the following query returns the unique records in our table DataFlair?
CorrectIncorrect - Question 16 of 25
16. Question
Write a query to grab the current time of the system?
CorrectIncorrect - Question 17 of 25
17. Question
We can use nesting in the stored procedures for?
CorrectIncorrect - Question 18 of 25
18. Question
Which of the below is an invalid query?
CorrectIncorrect - Question 19 of 25
19. Question
Which of the following network protocols needs to be enabled to allow SQL to access the IP address of the system?
CorrectIncorrect - Question 20 of 25
20. Question
Below are some constraint classes of SQL given. Find the one which is not a constraint class in SQL.
CorrectIncorrect - Question 21 of 25
21. Question
Which of the below is not a supported date or time format in SQL?
CorrectIncorrect - Question 22 of 25
22. Question
What is one major problem of creating indexes in SQL?
CorrectIncorrect - Question 23 of 25
23. Question
Write a query to create a view or virtual table and view it, from the DataFlair table named DataFlair_Indore with all the details of the Indore office.
CorrectIncorrect - Question 24 of 25
24. Question
Write a query to count the number of non-matching records in the DataFlair table?
CorrectIncorrect - Question 25 of 25
25. Question
What is the one thing we need to pay attention to when we need to use constraints?
CorrectIncorrect
Summary
Here we come to the end of the SQL Online quiz. Hope you enjoyed it and learnt new things.
Do not forget to share your score with us in the comment section.
Did you like this article? If Yes, please give DataFlair 5 Stars on Google
15
good job
20
I leared a subjective of SQL and my SQL through the quiz.