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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if you delete a table that is used by a view?

556


How to rebuild indexes with alter index ... Rebuild?

582


What is the beast way to write CTE in SQL Server ?

555


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

560


what authentication modes does sql server support? : Sql server database administration

514






What is the difference between ddl,dml and dcl commands?

605


How do you create type- insensitive operator?

565


Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

652


what protocol both networks use? : Sql server database administration

532


What is a partition key?

511


Can we update data in a view?

594


What is blocking and how would you troubleshoot it? : sql server database administration

579


How to create an index on a view?

571


What is ddl command?

525


How to implement service broker?

519