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


Hi I have scenario like this

s/r table T/r table
ename,sal empno,ename,sal
vijay,2000 1 , vijay, 2000
kumar,3000 2 ,kumar , 3000
ravi ,4000 3 ,ravi , 4000

How can i get target table like that without using
Transformer stage?

Answers were Sorted based on User's Feedback



Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / pavan

Hi This is pavan u use surrogate key generator.

Is This Answer Correct ?    8 Yes 1 No

Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / ramachandra rao

first of all question is not clear

ok fine

if u take source as sequential file there is one option is
there i.e rownumcolumn use this option it will create
sequnce number.

2.use columngenerator also we used



Thanks
chandu-09538627859

Is This Answer Correct ?    7 Yes 1 No

Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / surya

you can generate surrogate key in the transformer itself.
right click on the stage variables. tre you can find surrrogate key.

Is This Answer Correct ?    3 Yes 0 No

Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / krishna evsg

Hi Vijay

Actually I don't Know Transformer stage, But we can do the
above scnario in SQLSERVER2005. In SQLSERVER2005 we have a
built in function for Row_Number().


create table Source_Tab
(
ename varchar(max)
,sal money
)
GO


create table Target_Tab
(
eno int
,ename varchar(max)
,sal money
)
GO

insert into Source_Tab values('vijay',2000)
GO
insert into Source_Tab values('kumar ',3000)
GO
insert into Source_Tab values('ravi ',4000)
GO


insert into Target_Tab
(
eno
,ename
,sal
)

select ROW_NUMBER() OVER (ORDER BY ename)
AS 'RowNumber',ename,sal from source_Tab



SELECT * FROM Target_Tab
GO

SELECT * FROM source_Tab
GO

Is This Answer Correct ?    1 Yes 0 No

Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / d

d

Is This Answer Correct ?    1 Yes 0 No

Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / srinivasu

This is an optional property. It adds an extra column of type unsigned BigInt to the output of the stage, containing the row number. You must also add the column to the columns tab, unless runtime column propagation is enabled.

Is This Answer Correct ?    0 Yes 0 No

Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / sindhu

row number column in sequential file

Is This Answer Correct ?    0 Yes 0 No

Hi I have scenario like this s/r table T/r table ename,sal ..

Answer / kiran

ok well vijay.ur quetion not proper k.

see u can use s_key,column genaretor stage.
and u can define user define query in source level and
populated to target like dbl click on source and set read
method is user deine and write query=select
rownum,ename,sal from emp(s/r table name).k

Thanks&Regards
kiran
9393363309

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Data Stage Interview Questions

how do u reduce warnings

1 Answers   CGI,


How can you join flat file, oracle as a sources?

4 Answers   IBM,


How many Key we can define in remove duplicate stage?

0 Answers   CTS,


What is the use of hoursfromtime() function in transformer stage in datastage?

0 Answers  


Which algorithm you used for your hashfile?

0 Answers  


How can we perform 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

1 Answers   Infosys, TCS,


how to sort two columns in single job in datastage.

0 Answers   TCS,


6) my sorce d1 d2 d1 d2 d1 d3 d2 d1 my target tartget 1 d1 2 d1 3 d1 4 d1 target2 1 d2 2 d2 3 d3 Target 3 1 d3 Can any body send me answer this is argent requierment

3 Answers   TCS,


can we half project in parallel jobs and half project in server jobs?

4 Answers   Infosys, L&T,


1.which index is follows the dimensions tables?why? 2.what is the use of trigger in job sequence? 3.what is the mean of optimization? 4.what is the job control?when we use it? what is difference bet batch and sequencer? 6.seq--->seq,seq--->copy--->seq which one is best and efficient?

1 Answers  


How and where you used hash file?

0 Answers  


hi this is kiran i have one table i want divide the table with two different table like even rows and odd rows how can i do this one tell me plzz

4 Answers  


Categories