How to select the name of employee who is getting maximum
sal with out using subquery

Answer Posted / naresh

Here is the solution.

Select E_id, E_name,Salary from the Employes group by E_ID
Having Salary=Max(Salary)

Should work.
Try it and let me know.

Cheers!
Naresh

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What to do if the binary spfile is wrong for the default instance?

554


What is the difference between substr and instr?

511


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

617


What is dynamic proxy?

544


How to sort the query output in oracle?

599






What is bulk collect in oracle?

542


What is the relation of a user account and a schema?

603


What is hot backup and logical backup?

596


How to filter out duplications in the returning rows using oracle?

633


can u send the sql dumps to sivakumarr1987@gmail.com plz help me

2586


Name the three major set of files on disk that compose a database in Oracle?

627


What are the varoius components of physical database structure of oracle database?

560


What is ceil and floor in oracle?

565


Explain oracle instance.

676


What is set operator oracle?

520