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?
Answer Posted / 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 |
Post New Answer View All Answers
What is datastage engine?
What is ibm datastage flow designer?
What is active and passive stage?
What are the partitioning techniques available in link partitioner?
what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?
How the ipc stage work?
how to implement scd2 in datastage 7.5 with lookup stage
whom do you report?
Distinguish between informatica & datastage. Which one would you choose and why?
How do you import and export data into datastage?
What is process model?
What is "fatal error/rdbms code 3996" error?
Explain Quality stage?
What is the roundrobin collector?
What is the command line function to import and export the ds jobs?