Map sources such as ROWS columns

Hi all

I have this requirement of column mappings by lines in the target table.please help me...

Here is a sample of my source file having only 2columns.

FNAME * LNAME

Bob * thurman
Larry * hamilton
Nancy * vanessa

must load into the target table:

F/LNAME * VALUE * ROWNUMBER

FNAME * bob * 1234567
LNAME * thurman * 1234567
FNAME * larry * 2345678
LNAME * hamilton * 2345678
FNAME * nancy * 3456789
LNAME * vanessa * 3456789


You can see 3 rows of the source column are mapped as 6rows in the target table... and ROWNUMBER (which would be created on the fly while loading) is attached in the target... ROWNUMBER should be the same for the same line in the column of the source details... (i.e... for bob thurman rownumber is the same as 1234567)

Please you suggect a solution on how to achieve this in ODI...

Thanks in advance...

Hi guys...

I would try to help... It is not so complex to solve...

(1) create a work table with 1 column and 2 lines like:

create the table insert_table as
Select 1 double C1
Union
Select 2 double C1

If you wish, you can leave this step to an ODI procedure...

(2) create this table in a model

(3) create a join between two tables and check the option "on the cross" in the window of opportunity join

(4) to map the target columns as:

F/LNAME

-case when temp_table.c1 = 1
then "PNOM.
another "LNAME".
end

VALUE
-case when temp_table.c1 = 1
then Source.Fname
of other Source.Lname
end

and in the column of rownum just map the Source.Rownum

No sense?

Cezar Santos
[www.odiexperts.com]

Tags: Business Intelligence

Similar Questions

  • LabVIEW can find location of row/column selected in the open worksheet?

    Instead of asking user to LabVIEW manually to input data (location of the row/column you want for data entry in the spreadsheet open), can read LabVIEW that the location of the row/column selected in a worksheet open, selected by the user?

    If so, LabVIEW now has a starting location for the user to launch inputing data without having to ask the user LabVIEW!

    Any ideas on how to achieve this would be very appreciated!

    Thank you!

    Barry

    For what you want to do here, read and write in the cell current.  This example shows you the basics...

    Example of NOR

  • can I create a generic function row column Point?

    I have a VI with several inside multi-column list boxes.  One way that I've seen do writing entries is as follows:

    It works very well.  The only problem is that, to get the "Point to the row column" (PTRC) method requires (as I understand it) right click on the MCL and selecting this method.

    I have several MCLs, and I wanted to create a structure of the event which was generic and one of them was able to treat similarly.  But the problem with that is that I don't know a way to access the PTRC method for each of them.  The only way I know to do would be to use VI scripts to create the reference on the fly (not sure if it still works), but even if it works for me, I don't think that it will work with the free runtime LV (my experience is that you can not use RTÉ to run any screws that use scripts of VI).

    So my question is, is it possible to get a reference to the PTRC - generically - method without using scripts VI, or y at - it another way to do what I'm trying to do here (make the MCL writable by the user and have it keep the values that the user wrote to her during the execution of the VI).

    Thank you

    Hello bmishoe,

    You are almost there - just use an explicit, not implicit method and use this node of CtrlRef on the structure of the event to give you a reference to the control associated with the event.  At this point, all you have to do is add the MCLBs to the structure of the event.

    Kind regards

  • How can I write in a table cell (row, column appear) in a databae?

    How can I write in a table cell (row, column appear) in a database using LabVIEW Database Toolkit? I use Ms Access. Suppose I have three columns in a table, I write 1 row of the 1st column, then 1st rank of the 3rd column. The problem I have is after writing the 1st column of 1st row, the reference goes to the second row, and if I write in the 3rd column, he goes to the 2nd row 3rd column. Any suggestion?

    When you perform a SQL INSERT command, you create a new line. If you want to change an existing line, you must use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column = some_value). The some_column could be the unique ID of each line, date and time, etc.

    I don't know what is the function to use in the Toolbox to execute a SQL command, since I do not use the Toolbox. Also, I don't understand why you don't do a single INSERT. It would be much faster.

  • Error in the ATG 11.2 JIU during the mapping source repositories and destination

    Hi all

    I'm following this document https://docs.oracle.com/cd/E52516_01/CRS.11-0-1/ATGCRSInstall/html/s0213configuringandrunningafulldeploy01.html for the repository mapping. When I do repository mapping source repository and repository destination Bcc, I get these errors.

    Repository repository references "/ atg/commerce/catalog/SecureProductCatalog" "/ atg/content/ContentManagementRepository" which has not been mapped to a destination repository. Please check your mappings of repository for target 'Production '.

    Repository repository references "/ atg/multisite/SecureSiteRepository" "/ atg/commerce/catalog/ProductCatalog ' has not been mapped to a destination repository. Please check your mappings of repository for target 'Production '.

    Repository repository references "/ atg/commerce/locations/SecureLocationRepository" "/ atg/multisite/SiteRepository ' has not been mapped to a destination repository. Please check your mappings of repository for target 'Production '.

    Repository repository references "/ atg/commerce/STEPS/SecureClaimableRepository" "/ atg/commerce/catalog/ProductCatalog ' has not been mapped to a destination repository. Please check your mappings of repository for target 'Production '.


    I followed the order mentioned in the configuration guide and above got errors.


    I was able to successfully mapping in the following repositories.

    / ATG, Store, stores, SecureStoreContentRepository-/ atg, store, stores, StoreContentRepository_production

    / ATG/SEO/SecureSEORepository-/ atg/seo/SEORepository_production

    / ATG/commerce/Pricing/priceLists/SecurePriceLists-/ atg/commerce/pricing/priceLists/PriceLists_production

    / ATG/userprofiling/PersonalizationRepository-/ atg/userprofiling/PersonalizationRepository_production

    Please let me know how to fix this error, any help is much appreciated.

    Thank you all my problem has been resolved.

    I did the SecurePriceListsRepository,SecureContentManagementRepository, SecureDynamicMetadataRepository, SecureSiteRepository, SecureProductCatalog repository in one shot and saved.

    Then, I saved the remaining deposits mentioned in the configuration document.

    Thank you all and thank you for looking into this and to help me.

    Thank you

    J

  • Select row column in classic report default beat all

    Hello

    Based on my previous thread how can I do the same task in classic report.

    I followed your previous link to all select and clear the all check box.

    even he just not all checked when the page loads.

    Please help with this too.

    Hi Maxence,

    CORINE wrote:

    Hello

    Based on my previous thread how can I do the same task in classic report.

    I followed your previous link to all select and clear the all check box.

    even he just not all checked when the page loads.

    Please help with this too.

    The answer lies in the previous thread: Select the row column in report default heartbeat intractive all

    I hope this helps!

    Kind regards

    Kiran

  • Group Rows\columns open on each update

    Hello

    Whenever I have updated a smartview query that grouped rows & columns open, is there a vision where I can avoid this?

    Thank you

    In Smart View options on the formatting tab uncheck adjust columnwidth

  • Name of tables listing the definitions of Web Forms row\column\POV

    All,

    We have some applications planning and a lot of Web forms to allow entry in varied combinations of row\column\POV. Users, it is difficult to locate the correct online with the combination of right row\column\POV form, to allow them to enter data and have to open\close a large number of Web forms before they find the right pair they need\want.

    I know that the relational component of a planning application includes many tables store the definitions of Web forms, etc.. I would like to know where I could find a list of the tables that contain the definitions row\column\POV of each Web forms for each planning application in order to quickly identify the correct webforms who could access their data entry of support staff.

    Thanks in advance.

    JBM

    I think the feature is available for a long time even since version 9

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Meter of row/column for tables

    Hello
    I know this is very basic, but so far the examples here that I dug up doesn't really do anything remotely to what I want.
    I have 3 databases. Although they are defined as 'connections' in SQLDeveloper, I hope it is the same, that I'm still not used to the abstractions of Oracle.
    Each has several tables. All I want is loop in each of the 3 DBs and number of journal lines and County table.

    Say DB1:
    Rows: columns:
    Table 1: x y
    Table2: x y
    ....

    I really don't like what is inside of them. I found an example that does but it listed some system tables that are not part of my db. Change the "owner" has not really helped.
    The value of the variable "Owner" means a database, which is correct?
    Oh and I also don't care if the code is "inefficient", tables are not that big.

    Thanks in advance.

    Published by: 940349 on June 14, 2012 06:22

    If you mean you want only for specific schema / owner, you can add a where clause to interrogate or change the query and run it to scpecific user (schema). If you intend to run the specific user query the query would be something like below:

    select table_name,count(*) over() count_table,column_name,count(*) over(partition by table_name) count_column from user_tab_columns
    
  • Why Adobe Photoshop CS6 cannot copy and paste text from another source, such as Notepad or Ms Word?

    Why my Adobe Photoshop CS6 cannot copy and paste text from another source, such as Notepad or Ms Word?

    Here's the method copy / paste that works for me in Photoshop CS6:

    1. Select and copy text from a word processing program or another source.

    2. create a new text box in a Photoshop file by clicking on the icon that looks like a "T" in the toolbar.

    3. in Photoshop, go to the Edit menu at the top of the screen and the mouse down to paste.

    4. the copied text now appears in the text box.

  • Lose the mapping source-target of a process of data flow diagram

    Hello

    When I reload an xml repository model design, I lose mappings of source-target of a process of data flow diagram. I wonder why.

    The way it goes is:
    -Define a flow diagram data banks of information, processes and workflows.
    -Information structures are defined on the workflow and information reflected down to the processes and stores information.
    -In a process, I defined mapping Source-target by selecting a target element, and then by selecting the source element.
    -J' I save the entire model.
    -So far, the mapping of the Source-target maintains the link between the source and target.
    -If I leave Modeler data, next time I reload the saved template, the mapping target Source-target associations to elements of source are lost!

    Someone there the same question or do not know how to solve?

    Thank you

    / Mario

    Hi Mario,.

    There are a few errors in the definitions of meta data and you can change them - are located in datamodeler\datamodeler\xmlmetadata directory.
    (1) bad method is used in the definition of Process.xml meta data file:

    getter = "getUpdatedTargetElements" should be replaced by
    getter = "getTargetElements" and it works

    also, there is an error in TargetElement.xml

    getItemByID = "getPartyByID" should be replaced by
    getItemByID = "getSourceByID."

    Philippe

  • display the data in row columns

    I looked through the previous posts, but it is impossible to find a solution to my problem.

    I want to display the data in row columns.
    I have shown in the table below and test data and the sql code that gives me the result desired.
    However, you can see that the sql depends of me knowing all the values in the column "rank".
    I want a way to produce the output without knowing the values of rank.
    CREATE TABLE test1 (
      accno       NUMBER,
      holder_type VARCHAR2(10),
      rank        NUMBER)
    
    INSERT INTO test1 VALUES (1, 'acr', 0);
    INSERT INTO test1 VALUES (1, 'bws', 1);
    INSERT INTO test1 VALUES (1, 'aaa', 2);
    INSERT INTO test1 VALUES (2, 'cds', 0);
    INSERT INTO test1 VALUES (2, 'xxx', 1);
    INSERT INTO test1 VALUES (3, 'fgc', 0);
    INSERT INTO test1 VALUES (4, 'hgv', 0);
    INSERT INTO test1 VALUES (4, 'bws', 1);
    INSERT INTO test1 VALUES (4, 'qas', 2);
    INSERT INTO test1 VALUES (4, 'aws', 3);
    
    Here's the required output:=
    ACCNO     ALLCODES
    1     acr bws aaa
    2     cds xxx
    3     fgc
    4     hgv bws qas aws
    
    I.E. for each accno display the holder_types in rank sequence.
    
    SELECT * FROM
    (SELECT 
           a0.accno,
           a0.holder_type || DECODE(a1.holder_type, NULL, NULL, ' ') ||
           a1.holder_type || DECODE(a2.holder_type, NULL, NULL, ' ') ||
           a2.holder_type || DECODE(a3.holder_type, NULL, NULL, ' ') ||
           a3.holder_type || DECODE(a4.holder_type, NULL, NULL, ' ') ||
           a4.holder_type allcodes
      FROM (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 0) a0,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 1) a1,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 2) a2,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 3) a3,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 4) a4
     WHERE a0.accno = a1.accno(+)
       AND a0.accno = a2.accno(+)
       AND a0.accno = a3.accno(+)
       AND a0.accno = a4.accno(+)) a
       ORDER BY accno

    So you're after what we call 'Aggregation in the chain.'

    Check this link as it highlights several techniques:

    Aggregation of string techniques

    A Re: Concat ranks of the values in a single column Michael

    At Re: multiple lines in a single line in the 'single column Table' followed by reason of Billy on the conduct of a stragg first.

    In addition, 11 GR 2 has the LISTAGG function.

  • The period mapping Source in FDMEE

    Hello

    I use a custom as a source for myFDMEE SQL database and stuck in some requests, I was wondering if anyone can suggest?

    1. for the mapping of the time, I need to have a calendar (period) pre-defined in SQL? If Yes, how can I do this?

    2 - Data (Jan - ED) columns in source Table, so I in the BefImport Script how do I insert values (Jan - Dec) in columns amount AIF?  I can insert the value from the column of Jan in the column AMOUNT of AIF Interface open when selecting Table "period mapping Type" as none.

    Please suggest if someone has an idea. Much appreciated!

    Thank you

    Hello

    Table open interface adapter doesn't have several columns for periods so that the data is similar to FDMEE.

    There are two approaches:

    (1) you only keep current period data in the table to open interface.

    (2) you retain all data for all periods in the open interface board

    For 1)

    You can make your befimport script to import data into your custom sql only table during the POV.

    You can get the fdmContext period and use it as a filter in your SQL query to get the data

    with this option, you can use any type of mapping period as you do not need to use the mappings of period source: you have given class period POV in your open interface table

    For 2)

    This is generally used when the open interface table is populated from an external source where they load data for all periods in the table. Then, you will need to extract only your pov current data period.

    For this, you can use the mappings of Source period.

    With this option, you don't have any script befimport as the interface table is already filled.

    If you want to insert data for all periods in the table to open interface, you need to ROTATE the table as well:

    Acc1; 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12 where you have 12 values (for example, 1 to 12) is transformed into:

    Acc1; Jan; 1

    Acc1; Feb:2

    Acc1; Mar; 3...

    then you can use the mappings of source period to make the open interface card import only the data for the periods that you set in the execution of rule of data loading (the period of pov or a range of periods)

    I hope that clarifies.

  • A target table is in charge of two different sources but the same columns, but a source is one database and another in a flat file.

    We all hope you are doing well.

    I have a business problem to implement in ODI 11 G. It's here. I'm trying to load a target table from two sources that have the same column names. But a source is to the file format and the other is in the Oracle database.

    That's what I think I'll create two mappings in the same interface by using the Union between the sources. But I don't know how the interface would connect to different logical architecture to connect to two different sources.

    Thank you

    SM

    You are on the right track, all in a single interface. Follow these steps

    (1) pull model of your data in the designer of the source file and your table model target to the target pane.

    (2) all relevant columns map

    (3) in the source designer to create a new dataset and choose as the UNION join type (this will create a separate tab in the source designer pane)

    (4) select the new dataset tab in the source designer pane and pull your source oracle table data model in the designer of the source. All columns that are relevant to the target card

    (5) make sure that your staging location is set to a relational technology i.e. in this case the target would be an ideal candidate because it is where the ODI will organize the data from source two files and oracle and perform the UNION before loading to the target

    If you want to watch some pretty screenshots showing the steps above, take a look at http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/

  • problem using ActiveX to Excel app to determine the numbers of rows/columns

    Hello

    I would like to develop an app, that question is not total. of rows and columns of a data sheet excel and read the data in the same. I made use of a few vi, I found on the forum, but having runing bad to them,.

    can anyone please suggest me what I do wrong? I've never used before activex...

    Hello

    I would have used the free Excel Toolbox. See some examples with it here, here and here.

    The library contains functions of Excel ActiveX premade. This function here would have helped you a lot:

Maybe you are looking for