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...

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

Answer Posted / mithilesh gatole

Answer -

SELECT FROM Employee Emp1 WHERE (N-1) = ( SELECT COUNT(DISTINCT(Emp2.Salary)) FROM Employee Emp2
WHERE Emp2.Salary > Emp1.Salary)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the one-to-one relationship while designing tables.

941


How do I schedule a sql server profiler trace?

1028


What are triggers in ms sql server?

1230


Is the order of columns in the set clause important in ms sql server?

1014


Where are SQL server users names and passwords are stored in sql server?

1330


Is it possible to create trigger on views?

1033


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

1664


How to backup encryption key ?

191


Explain the etl (extraction, transformation, and loading)?

1057


What is the process of indexing?

1053


What is the command dbcc checkdb used for?

1074


why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

1135


What are some examples of schemas?

1030


What is query cost in sql server?

1040


What are basics of policy management?

1151