Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / gajula.lavanya

SELECT T1.NAME,T2.SAL FROM emp1 T1,emp2 T2
WHERE T1.ID=T2.ID AND T2.SAL=(SELECT MAX(SAL) FROM emp2);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the properties of a relational table?

980


Difference between group by clause and having clause in SQL?

929


Why I can not enter 0.001 second in date and time literals in ms sql server?

1013


How to connect Azure federated root database and apply federation in entity framework?

107


Can you explain different types of locks in sql server?

913


What is the fastest way to permanently delete a 1 million row table named customers?

1155


What is the Difference Between Primary and Foreign Key?

960


Explain subquery and state its properties?

970


Write the SQL query to drop, truncate and delete table.

917


Explain what is log shipping?

1075


Do I need a report server to run reports in my application?

153


Explain the use of keyword with encryption. Create a store procedure with encryption?

898


Explain transaction server implicit?

925


Describe in brief authentication modes in sql server.

968


What security features are available for stored procedure?

990