two tables are there.1st table EMP has two columns ID and name and contains data 1,A
2,B
3,C
2nd table EmpSal has 2 columns ID and Salary
Contains data -1,1000
2,5000
3,3000

Find name of employee having maximum salary ?

Answer Posted / ramnath_445

SELECT name,min(sal) from emp1 inner join empsal where emp1.id=empsal.id

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

685


What are the purposes of floor and sign functions?

633


Does union all remove duplicates?

700


How to bind a view to the schema of the underlying tables?

663


What is the concept of optimization?

682






If the job running very slow what is the action you do

1508


Write a program using SQL queries to find a unique entry in a table.

621


What is the purpose of sql profiler in sql server?

591


What are the types of normalization?

638


Some queries related to SQL

661


Find first and last day of current month in sql server

683


List down some advantages of sql stored procedure?

638


Do you know spatial data types - geometry and geography in sql server 2008?

679


How do you start single user mode in clustered installations?

605


What is a view and what are its advantages?

758