Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone tell me how to find max salary in SQL without using max function?

1 Answer

0 votes
by (119k points)

For SQL Server, here is the syntax to find the maximum salary of the employee table without using MAX () function:

SELECT TOP 1 Salary

FROM Employee_Table

ORDER BY Salary DESC

For SQL Server, here is the syntax to find the maximum salary of the employee table without using MAX () function:

SELECT Salary

FROM Employee_Table

ORDER BY Salary DESC

LIMIT 1

I suggest this SQL Training course by Intellipaat to learn SQL and writing complex SQL queries.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Apr 21, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Apr 20, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Apr 20, 2020 in SQL by Sudhir_1997 (55.6k points)

Browse Categories

...