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 an index in sql?

0 Answers  


How maney row would be print after join if A table have 100 rows and B table have 50 rows...

9 Answers   Hewitt,


What is an example of a foreign key?

0 Answers  


What are orphan records?

0 Answers  


Alternative way to DetDate() function?

5 Answers  






How do you delete a trigger?

0 Answers  


How to create logins using windows Authentication mode?

2 Answers  


What is database white box testing?

0 Answers  


What are the different ways you can create databases in sql server?

0 Answers  


What is check constraint in sql server?

0 Answers  


What is database normalization?

7 Answers   Deloitte, Digicel, JPMorgan Chase, Verifone,


UPDATE statement can on a single table or on the multiple table?

7 Answers   iGate, TCS,


Categories