Geeks Talk

Prepare for your Next Interview




Duplicating one row into two rows

This is a discussion on Duplicating one row into two rows within the Data Warehousing forums, part of the Databases category; I have one flatfile by name xyz having one row, and i want to duplicate this one row into two rows in my target table by name xyz without using ...


Go Back   Geeks Talk > Databases > Data Warehousing

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-11-2007
Expert Member
 
Join Date: Oct 2006
Posts: 690
Thanks: 0
Thanked 49 Times in 41 Posts
JobHelper is on a distinguished road
Duplicating one row into two rows

I have one flatfile by name xyz having one row, and i want to duplicate this one row into two rows in my target table by name xyz without using any transformation or any condition, how can i do this?

NOTE : [This question was asked by Pramod]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-03-2007
Junior Member
 
Join Date: Feb 2007
Location: india
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
sat.inn is on a distinguished road
Re: Duplicating one row into two rows

just do a straight load...that one row will be inserted into the target table.
Click the update as update checkbox in the target load option and then run the session once again.do reply
Reply With Quote
  #3 (permalink)  
Old 02-03-2007
Junior Member
 
Join Date: Jan 2007
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
chakravarthy_info is on a distinguished road
Re: Duplicating one row into two rows

How to do if Target is Flat file
Reply With Quote
  #4 (permalink)  
Old 02-05-2007
Junior Member
 
Join Date: Feb 2007
Location: India
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
vmandviya is on a distinguished road
Re: Duplicating one row into two rows

Can u please elobarte your question....?
Reply With Quote
  #5 (permalink)  
Old 02-05-2007
Junior Member
 
Join Date: Feb 2007
Location: india
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
sat.inn is on a distinguished road
Re: Duplicating one row into two rows

what i said s only for relational targets. for flat files there r some target load options like Loader, but i dunno how to use it. if we cant use in that case i think we shuld use update strategy transformation
Reply With Quote
  #6 (permalink)  
Old 02-09-2007
Junior Member
 
Join Date: Jan 2007
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
chakravarthy_info is on a distinguished road
Re: Duplicating one row into two rows

Hi ,

If target is flatfile or relational database you can use normalizer (occurs)transformation to make one row into multiple rows.

Regards
cha
Reply With Quote
  #7 (permalink)  
Old 07-11-2007
Junior Member
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sharada y is on a distinguished road
Re: Duplicating one row into two rows

hi all

i think we can do this by normalizer rtansformation
Reply With Quote
  #8 (permalink)  
Old 07-11-2007
Contributing Member
 
Join Date: Apr 2007
Location: bangalore
Posts: 46
Thanks: 0
Thanked 9 Times in 9 Posts
reetasharma108 is on a distinguished road
Re: Duplicating one row into two rows

First if you want to make duplicate records in target table then u can drag those columns from source qualifier to target table two times, But please make sure tht there should not be any type of unique constraint or primary key constraint on that column at database level otherwise it will give an error.


Reeta
Reply With Quote
The Following User Says Thank You to reetasharma108 For This Useful Post:
Reply

  Geeks Talk > Databases > Data Warehousing


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Display n-1 rows from a table dbtester SQL Server 3 02-07-2008 08:11 AM
Geting data from odd rows of an excel sheet, JobHelper WinRunner 2 10-18-2007 07:17 AM
Rejected rows JobHelper Data Warehousing 3 05-14-2007 06:17 AM


All times are GMT -4. The time now is 02:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved