query to find the maximum no persons with same age(age
colomn) from emp table
Answer Posted / krishnakumar
select max_age,age
from
(select count(age) max_age,age from emp group by age order
by max_age desc)
where rownum < 2
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between 10g OEM and 11g OEM?
how to make an oracle object
How to connect ms access to oracle servers?
How to run queries on external tables?
what are steps for interface? where is exchange rate defined in which table?
Difference between oracle's plus (+) notation and ansi join notation?
Is there any function in oracle similar like group_concat of mysql?
When do we use group by clause in a sql query?
How to handle a single quote in oracle sql?
How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
Explain about the analyze command in oracle?
Does oracle charge for java?
What is a nested table and how is it different from a normal table?
 How to use an oracle sequence generator in a mapping?