Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

an HCL GUVI product

SQL Exercises

Master SQL with hands-on practice problems across Beginner, Intermediate, and Advanced tracks. Filter by level, difficulty or status, and solve in our in-browser compiler.

90 questions0 / 90 solved3 levelsUpdated weekly

Programming Tracks16 Tracks

Py

Python

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
☕

Java

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
C++

C++

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
SQL

SQL

90 Questions
Active Track0 / 90 (0%)
BeginnerIntermediateAdvanced

SQL Questions90 Problems

0/90 Solved
QuestionDifficultyProgressStatus
SQLRetrieve all columns from the Employees table.SQL · Beginner
Easy0%Not Started
SQLSelect only the Name and Salary of each employee.SQL · Beginner
Easy0%Not Started
SQLFind employees who work in the IT department.SQL · Beginner
Easy0%Not Started
SQLRetrieve employees with a Salary greater than 50000.SQL · Beginner
Easy0%Not Started
SQLDisplay employee names in alphabetical order.SQL · Beginner
Easy0%Not Started
SQLCount the total number of employees in the Employees table.SQL · Beginner
Easy0%Not Started
SQLFind employees who joined before 2021.SQL · Beginner
Easy0%Not Started
SQLShow distinct departments in the Employees table.SQL · Beginner
Easy0%Not Started
SQLRetrieve the top 3 highest-paid employees.SQL · Beginner
Easy0%Not Started
SQLCalculate the average salary of employees.SQL · Beginner
Easy0%Not Started
SQLList employees in the Finance or Marketing department.SQL · Beginner
Easy0%Not Started
SQLShow employees whose names start with 'S'.SQL · Beginner
Easy0%Not Started
SQLFind employees with a Salary between 45000 and 52000.SQL · Beginner
Easy0%Not Started
SQLDisplay employees who do not belong to the HR department.SQL · Beginner
Easy0%Not Started
SQLCount employees in each department.SQL · Beginner
Easy0%Not Started
SQLRetrieve the minimum salary in the table.SQL · Beginner
Easy0%Not Started
SQLShow employees who joined in 2020 or later.SQL · Beginner
Easy0%Not Started
SQLList employees ordered by Joining_Date in descending order.SQL · Beginner
Easy0%Not Started
SQLRetrieve employees whose salary is not equal to 50000.SQL · Beginner
Easy0%Not Started
SQLCalculate the sum of all employees' salaries.SQL · Beginner
Easy0%Not Started
SQLFind employees in the IT department earning more than 50000.SQL · Beginner
Easy0%Not Started
SQLShow the maximum salary in the Marketing department.SQL · Beginner
Easy0%Not Started
SQLList employees who joined in the month of September.SQL · Beginner
Easy0%Not Started
SQLDisplay employee details by grouping them by department.SQL · Beginner
Easy0%Not Started
SQLRetrieve the last 2 entries in the Employees table.SQL · Beginner
Easy0%Not Started
RowsShowing 1 - 25 of 90

Frequently asked questions

What programming languages are covered in the exercises?
Our platform supports Python, Java, C, C++, JavaScript, and more languages used in the industry today.
How are the exercises divided across difficulty levels
Our exercises are organized into Beginner, Intermediate, and Advanced levels, letting you progress naturally.
Are the exercises suitable for both beginners and experienced coders?
Yes, the exercises are suitable for both beginners and experienced coders.
How do topic-wise exercises help in better learning?
The topic-wise exercises let you focus on one concept at a time, strengthening your understanding step by step.
Do the exercises cover both basic syntax and complex algorithms?
Yes, from basic syntax to complex algorithms, our exercises span the full range of programming challenges.
Can these exercises prepare me for coding interviews?
Yes, these exercises are designed to match real interview questions, helping you prepare for coding interviews.
Is there an integrated IDE on the platform to run and test the code?
Yes, our platform includes a built-in web IDE where you can write, test, and run your code instantly.
Do the exercises include solutions or hints for guidance?
Yes, when you're stuck, you can access helpful hints or study complete solutions to learn different approaches.
Are there any prerequisites for attempting the advanced-level exercises?
Yes, advanced exercises require a solid understanding of the basics and intermediate concepts of your chosen language.
How do these exercises improve coding speed and efficiency?
Through consistent practice and exposure to diverse challenges, you'll naturally become faster and more efficient at coding.
Is there a time limit for completing each exercise?
No, take as long as you need – our focus is on learning, not racing against the clock.
Are the exercises updated regularly to include new challenges?
Yes, we consistently update our exercise collection to include new challenges and keep up with industry trends.