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


How to select the name of employee who is getting maximum
sal with out using subquery

Answers were Sorted based on User's Feedback



How to select the name of employee who is getting maximum sal with out using subquery..

Answer / girija.112

ANS :
select max(ename) keep (dense_rank last order by sal) ename
from emp

ENAME
-----
KING

Is This Answer Correct ?    8 Yes 4 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / srinu.g

select b.ename from emp b,(select max(sal) k from emp) a
where a.k=b.sal;

Is This Answer Correct ?    2 Yes 0 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / naidu

SELECT * FROM Emp
WHERE LEVEL=&Number
CONNECT BY PRIOR Sal > Sal ;

Is This Answer Correct ?    0 Yes 0 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / naresh

Here is the solution.

Select E_id, E_name,Salary from the Employes group by E_ID
Having Salary=Max(Salary)

Should work.
Try it and let me know.

Cheers!
Naresh

Is This Answer Correct ?    0 Yes 0 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / niladri chatterjee

Select * From (Select * From Employee Order By Salary Desc) a
Where rownum=1 ;

Or

Select * From (Select Emp_id, Emp_NM, Salary From Employee Order By Salary Desc) a
Where rownum=1 ;

Based on Oracle 11g.

Is This Answer Correct ?    0 Yes 0 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / flitchner

select name from (select max(sal) as salary from emp) a,
emp b
where a.salary = b.sal;

Is This Answer Correct ?    0 Yes 1 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / neha

select a.ename from (select ename from emp ORDER BY SAL
desc,ROWNUM DESC)a
where rownum=1;

Is This Answer Correct ?    0 Yes 1 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / lince

select top 1 Name from emp order by sal desc

Is This Answer Correct ?    8 Yes 11 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / atal patra

select ename,max(sal)from emp group by ename;

Is This Answer Correct ?    6 Yes 9 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / pavan

select * from (select ename from emp order by rownuum desc)
where rownum=1;

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Oracle General Interview Questions

How different is ms access and oracle?

0 Answers  


In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col

0 Answers  


What is the effect of setting the value "ALL_ROWS" for OPTIMIZER_GOAL parameter of the ALTER SESSION command ?

1 Answers  


How to delete a user account in oracle?

0 Answers  


How to create an oracle testing table?

0 Answers  


What is mean by Program Global Area (PGA) ?

9 Answers   Bajaj,


Difference between NO DATA FOUND and %NOTFOUND?

1 Answers  


What are the type of Synonyms?

1 Answers  


How do you rate yourself in oracle and sql server ?

2 Answers   Keane India Ltd,


Hi friends can u send the oracle 9i full version download link?????????????? please reply ?

0 Answers  


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

0 Answers   Oracle,


how to create a new database in oracle?

6 Answers   TCS,


Categories
  • Oracle General Interview Questions Oracle General (1809)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)