Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

I want to load odd number records into one target table

This is a discussion on I want to load odd number records into one target table within the Data Warehousing forums, part of the Databases category; Hi friends, my question is I have 100 records in a source flat file. I want to load odd number records into one target table & even number records into ...

Go Back   Geeks Talk > Databases > Data Warehousing
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Data Warehousing Data Warehousing

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2007
Junior Member
 
Join Date: Feb 2007
Location: india
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
ggk.krishna is on a distinguished road
I want to load odd number records into one target table

Hi friends, my question is
I have 100 records in a source flat file. I want to load odd number records into one target table & even number records into another target table.
Using Informatica how can we do this ?
Thanks inadvance.
Reply With Quote
The Following User Says Thank You to ggk.krishna For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 04-17-2007
Junior Member
 
Join Date: Apr 2007
Location: La
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
jagadishwar is on a distinguished road
Re: I want to load odd number records into one target table

use a router transformation and groups with even and odd

for even records give a condition id%2=0
odd records id%2>0
this my idea if id is number.Try it if it not works try anther expression on which column based u want to split that records ok
Reply With Quote
  #3 (permalink)  
Old 04-17-2007
Junior Member
 
Join Date: Feb 2007
Location: india
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
ggk.krishna is on a distinguished road
Re: I want to load odd number records into one target table

Hi Jagadishwar,
Thanks for your reply.

I used some other condition i.e mod(num,2)=0 for even number in router transformation. Its working.
num is the column created to hold the serial number, and are generated using sequence generator transformation.

According to your answer, can we use rowid in any expressions for flat files?


Thanks & Regards,
G Gopi Krishna.





Quote:
Originally Posted by jagadishwar View Post
use a router transformation and groups with even and odd

for even records give a condition id%2=0
odd records id%2>0
this my idea if id is number.Try it if it not works try anther expression on which column based u want to split that records ok
Reply With Quote
Reply

  Geeks Talk > Databases > Data Warehousing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
plz let me know about Load size in load testing prakashnemesis Testing Issues 4 08-19-2008 02:26 AM
I want load the duplicate records to seperate table Geek_Guest Data Warehousing 4 04-06-2007 02:10 AM
How can I show my next target page through jsf abhinav83shukla Java 0 02-28-2007 05:50 AM
Source and Target connection value in the lookup sat.inn Data Warehousing 0 02-26-2007 02:34 AM
Want to load some 1000 records to target Geek_Guest Data Warehousing 0 02-21-2007 03:08 AM


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved