sql query which returns all empolyees who has salry grater than ram salary

 -- Assume we have a table called Employees with columns Id, Name, and Salary

-- Assume there is only one employee with the name Ram


-- Use a subquery to get Ram's salary

SELECT Id, Name, Salary

FROM Employees

WHERE Salary > (SELECT Salary FROM Employees WHERE Name = 'Ram')


Vikash Chauhan

C# & .NET experienced Software Engineer with a demonstrated history of working in the computer software industry.

Post a Comment

Previous Post Next Post

Contact Form