Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1013337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:05:07+00:00 2026-05-16T10:05:07+00:00

suppose I have the following source table (called S): name gender code Bob 0

  • 0

suppose I have the following source table (called S):

name   gender code

Bob         0          
Nancy       1          
Ruth        1          
David       0          

And let assume I also have a lookup table (called S_gender_values):

Gender_Code Gender_value

0           Male           
1           Female 

My goal is to create a target table (lets call it T) which will look like this:

name   Gender_Code    

Bob     M             
Nancy   F             
Ruth    F             
David   M             

I also assume that I have a lookup table for table T, called T_GenderValues, which I can use in order to create table T (and validate its results)

Gender_Code    Gender_value   

M                Male          
F                Female        

I thought about 2 (or 3) alternatives:

  1. create a mapping table (lets call it S_T_Gender_Code_Mapping) which will look like this:

    S_Gender_Code     T_Gender_code     
    
    0                   M               
    1                   F    
    

    and then do a simple join/lookup using tMap.

  2. use tMap and add expression which will implement the mapping, something like:

    (S.Gender_Code==0)?"F":"M"
    
  3. similar to Alternative 2 but to use user Java routines.

Is there an other alternative? I hoped I could leverage the ease of tMap to map between S_GenderValues and T_GenderValues and to benefit from the usability of UI tool like we have in tMap

Any hint?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:05:07+00:00Added an answer on May 16, 2026 at 10:05 am

    To me, it seems option #1 is needlessly complex and could slow the process. Sure, if you had dozens or thousands of lookups, that’s what you’d want, but not for two.

    And option #3 is also too much, as you’re going to want to merge the value into a flow or iterate stream anyway (components like tJavaRow are there to make more complex transformations).

    The tMap component can do the simple one-line Java right in the flow, so option 2 sounds to me like your best choice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

suppose that,we have following code auto_ptr<T> source() { return auto_ptr<T>( new T(1) ); }
Suppose I have following table in my database: Tbl_Persons: Id Country Name 1 Australia
Suppose I have the following code DataSource source = (DataSource) (new InitialContext()).lookup(jdbc/myName); Connection connnection
Suppose I have following code package memoryleak; public class MemoryLeak { public static int
Possible Duplicate: Are file descriptors shared when fork()ing? Suppose I have following code in
Suppose I have the following js code: r='d|daa|dd'; reg = /\|.*/; result = reg.exec(r);
I have a jquery datatable using the following code: // Test list table $('#dashboard_testlist_table').dataTable({
Suppose we have following function in PHP: public function testSomething() { $name = perform_sql_query("SELECT
Suppose I have the following setup: mkdir test && cd test virtualenv .venv source
Suppose, I have the following pattern in a comment in my code - $REV$

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.