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 will u get 1 and 3rd and 5th records in table what is
the query in oracle please help me

Answers were Sorted based on User's Feedback



how will u get 1 and 3rd and 5th records in table what is the query in oracle please help me..

Answer / sandipana

select rownum as rank,emp_id,sal from(select
lastname,salary from employees orderby salary desc)
where rownum IN(1,3,5);

Is This Answer Correct ?    1 Yes 0 No

how will u get 1 and 3rd and 5th records in table what is the query in oracle please help me..

Answer / priyank

select * from (select rownum rn,emp.* from emp) where mod
(rn,2)=1;

Is This Answer Correct ?    1 Yes 0 No

how will u get 1 and 3rd and 5th records in table what is the query in oracle please help me..

Answer / millar

ie.

select column from table_name where mod(primary_key_column,2)=1;


select employee_id from employees where mod(employee_id,2)=1

Is This Answer Correct ?    0 Yes 0 No

how will u get 1 and 3rd and 5th records in table what is the query in oracle please help me..

Answer / jhansi

It displays odd rows
select * from emp where (rowid,0) in(select rowid,mod
(rownum,2) from emp);

Is This Answer Correct ?    0 Yes 2 No

how will u get 1 and 3rd and 5th records in table what is the query in oracle please help me..

Answer / punyaslok

(select * from emp)-(select rownum,emp.* from emp order by
mod(rownum,2);

Is This Answer Correct ?    0 Yes 3 No

how will u get 1 and 3rd and 5th records in table what is the query in oracle please help me..

Answer / udaya

SELECT * FROM TABLE_NAME WHERE ROWNUM=1 AND ROWNUM=3 AND
ROENUM=5

Is This Answer Correct ?    5 Yes 32 No

Post New Answer

More Informatica Interview Questions

How can yoU improve session performance in aggregator transformation?

8 Answers   TCS,


hi i want to install latest informatica software in my pc..can anybody help me where should i get the infomatica software..plz help me

3 Answers  


What are the different components of powercenter?

0 Answers  


IN A MAPPING WHEN WE USE AGGRIGATER TRANSFORMATION WE WILL USE GROUP BY PORT. IF GROUPBY IS NOT SELECTED BY DEFAULT IT WILL TAKE ONLY THE LAST COLUMN WHY????

3 Answers   IBM,


if the session continuous run what can we do. means shall we stop the session or abort session. what is the correct reasion. why this situation occurs

1 Answers  


What is a unit Testing?

1 Answers  


How do you implement unconn. Stored proc. In a mapping?

1 Answers  


If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b, the target should be loaded as 1 a+b+c or 1 a||b||c, what transformations should be used for this?

4 Answers   ABC, Cap Gemini,


What is dimensional table? Explain the different dimensions.

0 Answers  


if i have records like these (source table) rowid name 10001 gdgfj 10002 dkdfh 10003 fjfgdhgjk 10001 gfhgdgh 10002 hjkdghkfh the target table should be like these by using expression tranformation. (Target table) rowid name 10001 gdgfj 10002 dkdfh 10003 fjfgdhgjk xx001 gfhgdgh xx002 hjkdghkfh (that means duplicated records should contain XX in there rowid)

5 Answers   iFlex,


What is meant by query override?

0 Answers  


write a query for how to eliminate the duplicate rows without using distinct?

6 Answers   iGate,


Categories