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


Name Salary
Abc 50000
Abc 50000
xyz 20000
find the max salary using aggregate function?

Answers were Sorted based on User's Feedback



Name Salary Abc 50000 Abc 50000 xyz 20000 find the max salary using aggregate ..

Answer / guest

select max(sal) from tab_name;
or
select * from tab_name where sal=(select max(sal) from
tab_name) and rownum<=1;

Is This Answer Correct ?    20 Yes 0 No

Name Salary Abc 50000 Abc 50000 xyz 20000 find the max salary using aggregate ..

Answer / prashant

select max(salary) from
(select distinct(salary) from ABC)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

Which clause of an UPDATE statement allows you to affect only certain rows of a table? 1. The WHERE clause 2. The SET clause 3. The ROWS AFFECTED clause 4. The ORDER BY clause

6 Answers   HCL,


What is dbo in sql?

0 Answers  


How do I delete a trigger?

0 Answers  


What is the difference between join and natural join?

0 Answers  


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

0 Answers   MCN Solutions,


What is a sql schema used for?

0 Answers  


What is procedure explain with program?

0 Answers  


What is sql partition function?

0 Answers  


what are the 'mysql' command line options? : Sql dba

0 Answers  


What is a trigger ?

11 Answers   Accenture, BirlaSoft,


write a query to find out the no. of employees whose age is less than 25 and max of salary for the employees belonging to a particular department is less than 20000

6 Answers  


What is mdf ldf and ndf?

0 Answers  


Categories