one table has four field id,name,design,salary. i have to
find maximum salary .

Answers were Sorted based on User's Feedback



one table has four field id,name,design,salary. i have to find maximum salary ...

Answer / sujit

select max(sal) from <tablename>
if this answer not correct plz give me commets on the answer

Is This Answer Correct ?    13 Yes 2 No

one table has four field id,name,design,salary. i have to find maximum salary ...

Answer / prashant

Select * from table1 where salary = (select max(salary)
from table1)

Is This Answer Correct ?    8 Yes 0 No

one table has four field id,name,design,salary. i have to find maximum salary ...

Answer / ashish

hi,, it work


select * from table where salary =(select max(salary) from
table) .......this returns whole record of that salary,,,,
an if u want just that maximum salary than



select max(salary) from table

Is This Answer Correct ?    6 Yes 0 No

one table has four field id,name,design,salary. i have to find maximum salary ...

Answer / elumalai.k

select max(salary) from tablename

Is This Answer Correct ?    4 Yes 0 No

one table has four field id,name,design,salary. i have to find maximum salary ...

Answer / soni

SELECT MAX(columnName1)
FROM Employee

Is This Answer Correct ?    3 Yes 1 No

one table has four field id,name,design,salary. i have to find maximum salary ...

Answer / guest

select * from tab where max(salary)

Is This Answer Correct ?    4 Yes 8 No

Post New Answer

More SQL Server Interview Questions

What is difference between restoration and recovery in SQLServer?

3 Answers   Microsoft,


what is a cursor and what is its use?

2 Answers   L&T,


How to write a script for upate the data in prod , i have 50000 row are there

2 Answers   TCS,


What is the security principal at the server level that represents your session?

0 Answers  


How are the exceptions handled in sql server programming?

0 Answers  






What is the query optimization statistics?

1 Answers  


What is 5nf in normalization form?

0 Answers  


What are diverse clauses that form a part of sql?

0 Answers  


Can we call SP inside a query?

5 Answers   CA, CarrizalSoft Technologies, Wipro,


Can a table have 2 foreign keys?

0 Answers  


How to assign null values to variables or columns?

0 Answers  


How do I manually uninstall an instance of sql server 2016?

0 Answers  


Categories