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
Explain comment on transactions?
What is cursors?
How use inner join in sql server?
What are date and time data types in ms sql server?
What is role playing dimension with two examples? : sql server analysis services, ssas
What is tempdb database? : SQL Server Architecture
Explain what is analysis service repository?
Which Model uses the SET concept
Give a example to search fr a string in all stored procedure in sql server.
Does dbcc checkdb requires db to be in single_user mode? : sql server database administration
Tell me in brief how sql server enhances scalability of the database system?
What is normalization and denormalization in sql server?
Can you move the resources after pausing the node? : sql server database administration
what are the disadvantages of cursors? : Sql server database administration
What is difference between view and materialized view?