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 the system function to get current user's user id? : Sql server database administration

0 Answers  


How to create a new table in a given schema?

0 Answers  


explain how to create a new schema in a database? : Sql server database administration

0 Answers  


How do I shrink an ldf file?

0 Answers  


How to rename databases in ms sql server?

0 Answers  






What is use of except clause?

0 Answers  


How to loop through the result set with @@fetch_status?

0 Answers  


How to use group functions in the select clause in ms sql server?

0 Answers  


How will you collect the date from current date to last older 6 days date in sql server 2005

4 Answers  


What are the results of running this script?

0 Answers  


Ek lifafa 10 noto se bhara hai usme 2 or 5 ke note nahi hai aur usme total 50Rs hai, to batao lifafe me kon se not kitne hia it’s a challenge thank’s

6 Answers   Broadridge,


What are the basic functions for master, msdb, model, tempdb databases?

0 Answers  


Categories