Write a query to get all details of employee who has maximum
salary from employee table

Answer Posted / vj

with cte as
(
select row_number() over (order by employee_salary desc)
maxSal ,* from Employee_Test)
select * from cte where maxSal=1

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of backups that exist?

674


Explain different backup plans?

525


How do I create a stored procedure in sql server?

508


What is report server project?

106


What are policy management terms?

549






What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

589


How do you send email on SQL Server?

569


What are the encryption mechanisms in sql server?

568


What is openxml in sql server?

608


What is a data source or ds? : sql server analysis services, ssas

553


What is the meaning of sql server?

522


Explain what is cte (common table expression)?

619


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1551


Explain the commands in sql server?

540


Tell me what is fill factor?

547