how do u get the first record from 50,000 records ?

Answers were Sorted based on User's Feedback



how do u get the first record from 50,000 records ?..

Answer / chemistrya2z

select * from <tbl> where rownum<2;

Is This Answer Correct ?    17 Yes 0 No

how do u get the first record from 50,000 records ?..

Answer / anil

use first function in agg or seq->filter(rounum=1) then
connect to target .i am right or wrong?

Is This Answer Correct ?    6 Yes 1 No

how do u get the first record from 50,000 records ?..

Answer / srinivasarao dasari

Hi Chandra,

You did not mention the criteria that how do u want that
first record should be fetched.

Is This Answer Correct ?    1 Yes 0 No

how do u get the first record from 50,000 records ?..

Answer / somnath pain

I suppose u r working with informatica.
So here u can import the source and after the source use a
expression transformation.
use a sq generator set start val to 1.
connect the nextval port to expession transformation.
apply a filter and set filter condition as nextval=1 connect
the filter o/p to target.
u will get the desired row.

regards,
Somnath

Is This Answer Correct ?    3 Yes 2 No

how do u get the first record from 50,000 records ?..

Answer / bsgsr

simple. connect the source to ranker select top and set no
of ranks to 1.

Is This Answer Correct ?    3 Yes 3 No

how do u get the first record from 50,000 records ?..

Answer / narsi

If it is flat file use sed command

Is This Answer Correct ?    0 Yes 0 No

how do u get the first record from 50,000 records ?..

Answer / amedela chandra sekhar

Select * from(select rownum as rno,emp.* from emp) where rno=&n
EX:

SQL> Select * from(select rownum as rno,emp.* from emp) where rno=&n;
Enter value for n: 1
old 1: Select * from(select rownum as rno,emp.* from emp) where rno=&n
new 1: Select * from(select rownum as rno,emp.* from emp) where rno=1

RNO EMPNO ENAME JOB MGR HIREDATE SAL
---------- ---------- ---------- --------- ---------- --------- ----------
COMM DEPTNO
---------- ----------
1 7369 SMITH CLERK 7902 17-DEC-80 800
20

Is This Answer Correct ?    0 Yes 2 No

how do u get the first record from 50,000 records ?..

Answer / subramanyam

use rank transformation u can get it

Is This Answer Correct ?    1 Yes 4 No

how do u get the first record from 50,000 records ?..

Answer / hanumantharao

select *from emp where rownum=1;

Is This Answer Correct ?    1 Yes 10 No

how do u get the first record from 50,000 records ?..

Answer / rv

select @ from <tbl> where rownum>2; im right ?
other wise mail to me rayallarv@gamil.com

Is This Answer Correct ?    2 Yes 24 No

Post New Answer

More Informatica Interview Questions

what is system requirement(SR) & business requirement(BR)?

2 Answers   Ness Technologies,


connected and unconnected lookups?

4 Answers  


How to generate the HTML output using Informatica.

3 Answers   Wipro,


how can import the data from the flat files?

2 Answers  


What do you mean by filter transformation?

0 Answers  






Write the different tools in the workflow manager?

0 Answers  


What is InformaticaPowerCenter?

0 Answers   Informatica,


Can you use the maping parameters or variables created in one maping into any other reusable transformation?

1 Answers  


i have source data like id name sal 1 a 65020 2 b 78250 3 c 58264 but how to get target like this id name sal 1 a Sixty five thousand twenty 2 b Seventy thousand two fify 3 c Fifty eight thousand two sixty four

3 Answers  


What is deployment group?

0 Answers  


what is parallel querying and what r hints.

1 Answers  


how we can add header and footer to flat files?

2 Answers   Tech Mahindra, Zensar,


Categories