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

How to test values returned by a subquery with the in operator?

878


what is a traditional network library for sql servers? : Sql server database administration

636


What is the openxml statement in sql server?

726


Which tcp/ip port does the sql server run on? How can it be changed?

718


How does recursive cte works in sql server?

711






Explain throw statement in sql server 2008?

734


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

736


Characterize join and name diverse sorts of joins?

680


What happens if you are trying to access a schema not owned by you?

716


How do you test your database? : sql server database administration

715


Explain the steps to create and execute a user-defined function in the sql server?

708


can a database be shrunk with users active? : Sql server administration

757


What’s the distinction between dropping a info and taking a info offline?

805


What is meant by indexing?

661


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

718