Correspondent: combining two sets of data

Hello

I have a source of data (A Datasource, 10,000 records) that I want to enrich with another source of data (Datasource B, 500 records) based on the common Transaction ID. So not all of the 10,000 can be enriched in any case.

I used the processor enhance to derive records can be enriched. However, I'm kinda stuck in how can I make sure that 500 records that in fact can be fortified will be inserted in A Datasource in the form of additional fields. Merge data flow I tried, but cela add up the lines and does not have the characteristics of a true insertion.

In the end, I still want to have 10,000 records, but 500 of them enriched by new fields.

What is the best way to make this work properly?

Kind regards

Niek

Yes it's true. Fusion configuration sets up how you export merged data. For matching records, you have several options, preferring to output only a single source, a source out most common value or the most recent value using a date field etc.

There is an option to output the unmatched records (top box) or not.

-Mike

Tags: Fusion Middleware

Similar Questions

  • Comparing two sets of data in BPEL

    Hey guys,.

    There is a web service that provides (and is the source of) data, and a table that is independent of the service that contains the same data. I am writing a 11g BPEL process to synchronize the data that is returned by the service with the data in the table. I invoke the database and service adapter to receive a data collection and I need to compare two sets of data to see what is on the whole of the service data that is not in the set of data in the table, so that I can insert them into the table. I also need to compare the values of the data sets possible updates of already existing records. I don't know how to do it though. I thought using a java embedded activity to compare the two games. What is the best way to do it? Examples of code would be much appreciated.

    Thank you

    Bill

    Hi, can not use the merge (insert or update) operation in the adapter of database for this use case?

  • Burst with two sets of data

    I need assistance with BEEP. I have a report with data from two different sets of data. I need to burst this report to send to different people. The data below. The DS1 data from a database and DS2 data, on the other. I need to burst the data/DATA/DS1/DS1_ROW/REGION and/DATA/DS2/DS2_ROW/REGION, this column has the same values. When I use monitoring makes it possible to break out the report, only the data of DS1 appear in the PDF file, but I need also the data of DS2. I use Split by and deliver with/DATA/DS1/DS1_ROW/REGION. How can I do?

    Select
    USERS. KEY REGION,
    'Model' MODEL,
    TEMPLATE_FORMAT "RTF"
    "pt - BR" LOCAL,
    OUTPUT_FORMAT "PDF."
    DEL_CHANNEL "FILE"
    "C:\SampleReports\" "Parameter1",
    USERS. REGION | '-' || USERS. USER NAME | '-' || TO_CHAR (SYSDATE, 'DD-MM-RRRR') | parameter 2 '.pdf '.
    CFO. USERS
    order by USERS. REGION

    < DATA >
    < DS1 >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    DF < UF > < /UF >
    < VALOR_RESP_NUM > 13.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    < UF > GO < /UF >
    < VALOR_RESP_NUM > 6.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MS < UF > < /UF >
    < VALOR_RESP_NUM > 3.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MT < UF > < /UF >
    < VALOR_RESP_NUM > 5.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    AL < UF > < /UF >
    < VALOR_RESP_NUM > 9.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    BA < UF > < /UF >
    < VALOR_RESP_NUM > 9.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    THIS < UF > < /UF >
    < VALOR_RESP_NUM > 7.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    MY < UF > < /UF >
    < VALOR_RESP_NUM > 7.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    ...
    < DS2 >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    DF < UF > < /UF >
    < VALOR_RESP_NUM > 131,0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    < UF > GO < /UF >
    < VALOR_RESP_NUM > 612.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MS < UF > < /UF >
    < VALOR_RESP_NUM > 312.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MT < UF > < /UF >
    < VALOR_RESP_NUM > 534.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    AL < UF > < /UF >
    < VALOR_RESP_NUM > 93.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    BA < UF > < /UF >
    < VALOR_RESP_NUM > 340,0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    THIS < UF > < /UF >
    < VALOR_RESP_NUM > 3430.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    MY < UF > < /UF >
    < VALOR_RESP_NUM > 7045.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    ...
    < / DS2 >
    < / TEMPLATETESTE >

    Try this

    
    
    
    select UF.REGIAO as REGIAO_Q1,
    UF.UF as UF,
    RESP_VAL.VALOR_RESP_NUM as VALOR_RESP_NUM
    from DPF.SUBPERGUNTAS SUBPERGUNTAS,
    DPF.RESP_VAL RESP_VAL,
    DPF.UF UF
    where SUBPERGUNTAS.RESPOSTA ='Computadores'
    order by UF.REGIAO ASC, UF.UF ASC
    
    
    select      UF.REGIAO as REGIAO,
    UF.UF as UF,
    RESP_VAL.VALOR_RESP_NUM * 1000 as VALOR_RESP_NUM
    from DPF.RESP_VAL RESP_VAL,
    DPF.UF UF,
    DPF.SUBPERGUNTAS SUBPERGUNTAS
    where SUBPERGUNTAS.RESPOSTA ='Computadores'
    and UF.REGIAO = :REGIAO_Q1
    order by UF.REGIAO ASC, UF.UF ASC
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  • Corresponding to a set of data from one table to another

    I have a table - Table_1 with columns A, B, C, D, I have another (Table_2) table with columns B, C, D.

    I try to get all the rows in Table_1 where the values correspond to columns B, C, D.

    The catch here is that returned from TABLE_1 lines should be the same number of rows as in TABLE_2 and the value in TABLE_1 from 'A' should be the same for all these lines. So--Table_1 could return several sets of data where the VALUE of A is different for each SET but - the 'GAME' must match all other values in TABLE_2 exactly (including the number of lines for each game)...

    Any help is greatly appreciated. I hope that I said above clearly enough.

    -create tables

    create table t1 (a varchar2 (10), varchar2 (10) b, c varchar (10), varchar2 (10)) d;
    create table t2 (varchar2 (10) b, varchar2 (10) c, varchar (10)) d;

    -create data, 5 games in t1 with 2 correspondents sets

    insert into t2 values ('1 ', '2',' 3');
    insert into t2 values ('2 ', '2',' 3');
    insert into t2 values ('3 ', '2',' 3');
    insert into t1 values ('a', '1', ' 2 ', 3');
    insert into t1 values ('a', '2', ' 2 ', 3');
    insert into t1 values ('a', '3', ' 2 ', 3');
    insert into t1 values ('b', '1', ' 2 ', ' 3');
    insert into t1 values ('b', '2', ' 2 ', ' 3');
    insert into t1 values ('c', '1', ' 2 ', ' 3');
    insert into t1 values ('c', '2', ' 2 ', ' 3');
    insert into t1 values ('c', '3', ' 2 ', ' 3');
    insert into t1 values ('c', '4', ' 2 ', ' 3');
    insert into t1 values (has "', 1 ', ' 2 ', ' 3'");
    insert into t1 values (has "', 2 ', ' 2 ', ' 3'");
    insert into t1 values (has "', ' 3, ' 2 ', ' 3'");
    insert into t1 values ('e', '4', ' 2 ', ' 3');
    insert into t1 values ('e', '5', ' 2 ', ' 3');
    insert into t1 values ('e', '6', ' 2 ', ' 3');

    Select * from t1 where one (not in
    Select a from t1 where does not exist (select 1 from t2 where b = t1.b and c = t1.c and d = t1.d)
    Union
    Select one of (select one, count (*) NTC group by a t1) where NTC! = (select count (*) from t2)
    )

    A B C D
    ---------- ---------- ---------- ----------
    1 2 3
    2 2 3
    3-2-3
    1 2 3 d
    2 2 3 d
    3 2 3 d

    6 selected lines

  • Find the median of a set of data

    I have a table that looks like this:

    Range

    Set of data: range values

    Data set b: range values

    0.00 - 0.99

    35

    67

    1.00 - 1.99

    35

    40

    2.00 - 2.99

    49

    54

    3.00 - 3.99

    41

    45

    4.00 - 4.99

    36

    38

    5.00 - 5.99

    31

    34

    6.00 - 6.99

    22

    29

    7.00 - 7.99

    30

    20

    8.00 - 8.99

    24

    16

    9.00 - 9.99

    16

    11

    10.00 - 10.99

    15

    10

    11.00 - 11.99

    12

    5

    12.00 - 12.99

    11

    1

    13.00 - 13.99

    5

    2

    14.00 - 14.99

    5

    1

    15.00 - 15.99

    2

    0

    16.00 - 16.99

    1

    0

    17.00 - 17.99

    2

    0

    18.00 - 18.99

    1

    0

    How can I find the median interval for each set of data (A and B)?

    Thanks for your help!

    Median and range are two different things from what I remember. Can you please send a link to a Web site that could describe what a "median line"?

    Median is the average of a set of data (even counting data sets usually take the average < average > the values of two intermediate points)

    Range is simply the max - min.

    Jason

  • Point cloud with missing data and 3 sets of data

    Hello

    I'm doing a scatter diagram that has 3 sets of data in it (i.e. 3 plots on the same graph), except that 2 of my sets of data have a missing value while my third set has all the values. I end up getting 2 lines that are disconnected. I can't just remove the line containing the missing data for the 2 sets of data because since my category axis is time, my data points get shifted and no longer appear at the right time. This is the chart that I have.

    Thank you.

    Hi Gabrielle,.

    If there is a diagram of dispersion, the x axis is a value axis. If you have auto selected for the min and max values on this axis, the scale may change when you remove the data point, 15, 85, but the rest remains in the same position relative to the values on each axis of ordinates. What change will be , however, is the curve on which 15 85 approached a local y maximum.

    Scatterplots will always leave a gap in the line/curve of connection where there are a pair of missing data. There are two ways to close the gap.

    If the chart is an essentially linear relationship, you can use a calculated value is pair up with the lack of value x. The downside of this is that the representation of this point will be indistinguishable on the map of the other data points, measured.

    A better way would be to make two tables, one with the full data set, the other with the partial sets, but with the pair missing completely removed.

    Adjust the cards the same size and have the same scales on each axis, then just remove one of the cards except the data points, the curves connecting the data points, the x axis of ordinates and the legend showing the color and the forms used to plot each series.

    Give a graphic a transparent filling and place it in front of the other.

    Kind regards

    Barry

  • How to combine two user accounts

    I created a user account on my new MBP (os x 10.11.3) before using the migration assistant to transfer the data from my old MBP.

    Now I have 2 user accounts I need to merge into one

    Any advice for how to fix the welcome.

    THX & br - gerhard

    lookie here

    Combine two + accounts on the same machine

  • combine two daq physical channels in a single task

    Hi all!

    I use a PCI-6120 with a BNC-2120 to generate two signals: one is used to control an optical device which must be characterized, and the other signal is sent to a digital video camera to trigger the acquisition so that it is synchronized with the first signal. Everything is controlled with Labview.

    I want to give the possibility to the user to choose which channel to use for the first signal and channel to use for the second signal, depending on how the devices connected to the BNC-2120. So I would like to put two different "physical channel" screws on the Labview command window.

    My question is:

    What I need to create two different tasks to the signals to be generated on the appropriate channel, or can I combine two channels (and how?) think I handle only a single task to two channels always but do not forget that each signal is generated on the corerct channel, depending on the channel selected for each of the two signals...?

    Thanks a lot for your answers.

    Nice day.

    Luke

    Hi LucG,

    If you use only a single Council to create only a single task for two generations.

    You can choose several channels by clicking on "Restaurants" in the channel control physical choice multiple channels thanks ctr + click, or by concatenating multiple channels with a comma as on arrival at the VI.

    Then, when you provide data to the VI of writing, the data should be organized in a table, each channel is on a line and the order of the channels is the same as in the control of the physical channels.

    I hope this can help!

    Thank you

  • Average values for separate sets of data graph XY multiplot

    Hello

    I'm using Labview 2010 and I'm a bit of a novice, unfortunately.

    So I am currently trying to get average values of the three plots I have on a multiplot XY Chart. I thought the best way to achieve this would be to use the express VI of statistics, but when I try to wire the data I need for this I can get statistics for a set of data and not the other two.

    I don't know how the separately on data sets, as it is not a table.

    If anyone can help me, it would be much appreciated. Sorry for the probable simplicity of the question.

    (The program is basically an ODE Solver, which then displays pressure at different places in a bioreactor).

    In the small LOOP where you have data of y for each parcel in the form of a 1 d table, add a "mean.vi" in the math palette: statistics. AutoIndex the output on the edge of the loop to get a table 1 d containing three ways.

    (In addition, a lot of your code could be considerably simplfified. You can [i] connect directly to the structure of the case and a case of '0' and the other, by default. Better would simply initialize the shift, no means required register. Index table is resizable, so you don't need to a single instance on the lower right corner. Wouldn't be easier to just get the latest column and it wire back the entrance inside the structure cases via the feedback node? No need to "subset of table to replace").

    You have forgotten to attach a Subvi, so we can't really test.

    EDH is a quick project:

  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • Difficulty to use indexing to divide the data into five sets of data

    Hello

    I'm using labview to program a mass spectrometer.  I want to conduct surveillance of the multiple ion where I watch the level of five different masses over time.  The five different masses correspond to five of the tensions that are sent via the DAC to my instrument.  After sending each voltage, a voltage was then read AIN.  The help of indexation and a for loop, I can send fill this function.

    My problem is to be able to plot these data.  I need a field of tension AIN (y) and the time (x) for five tension (mass) and plots to display on a single diagram.  I don't know how to correlate data from indexing to separate into five different mass and then repeat the experience by adding data to each mass using all loop.  When I tried I just get data tracing as a straight line as a set of data when I need five sets of data.

    I enclose my vi.  Any help would be great.

    Your VI base design is incorrect:

    • There is no reason for you to have 2 while loops. One is suffient.
    • You should not open the interface in each iteration of the loop. Open outside, do your work and then close when you are finished loop.

    Regarding the map, get rid of the inner loop and eliminate this Build table you have outside the loop for. In order to have a graphic draw several lines, you have need of a 2D array. Because you use a loop for to acquire a reading at the same time, you'll need create a 2D out of the loop for. To do this, put a table to build inside the loop, then a function of 2D matrix transposes outdoors. See the attached example.

  • XY graph, initialize multiple groups of data and update a single set of data

    Hello

    I have developed a VI to control the coordinates XY of a platform using two engines. A version a little kwicks xy plotter.

    The detail that I could use help in is the following:

    1. I have 469 (or 400 ~ ish, there are two modes) of the discrete points to be initialized/connected to a XY graph such that a cursor on the XY graph can break discrete points. It's well done.

    2. I have to keep track of the current position of XY. It's also well done

    3. I have to keep track of the former x - y positions, where I was able to extract the data correctly. This is done by a switch.

    4. almost all VI has an a giant loop, although sequenced by 0 of the past a structure of case to another until you reach the final "global dummy.

    Now, signals which are processed to the engine through a USB digital signal generator, I think not that the specifications are necessary. Essentially I needed bitmask each individual movement, so the 'engine of movement' part is embedded in the giant of while loop. This means that whenever I have add a new feature to my VI, engine movements slow down, each time that the operating system on the computer decides to run an automatic update, drivers slow down. I do not have the luxury of multi-threading or a microcontroller immediately.

    At this point, my engines are terribly slowly, and I'll try to find a way to make them run faster. I am sure that the bottleneck is actually treatment for my data XY graph.

    My XY graph manages 3 sets of data,

    a. 469 discrete points (table 2 x 469) or 400 ~ ish discrete points (2 x 400 ~ table)

    position current c. (x, y)

    d. "rescued/captured" (2xincreasing up to table 469) positions

    everything has, b, c are inside the while loop. A switch determines the 'a' is used.

    the berries are grouped and then sent in the graph xy inside the while loop. I need the graph to be interactive to the cursor and data.

    Now, is that I wish to run things.

    1. selection from either a or b is responsible to the xy chart (by a switch).

    2 c is updated constantly.

    3 d is updated whenever the data was captured (by a switch).

    Basically, I need a and or b to run only ONCE at initialization of the (and when I decide to swtich from one to the other) and remains constant. In the same way D updates only when a switch has been pressed.

    I failed to find resources too tracing data to the xygraph, and drawing a live data on top selectively.

    I have attached an outdated version of my front as reference. I would like suggestions. Thank you in advance.

    -JLS


  • Combine two tables 1 d in a 2D array

    Hi all

    Maybe I forget what is obvious, but I can't find a solution to combine two tables 1 d in a 2D array AND (it is the impossible part for me) using the tables columns instead of lines.

    Example:

    Table 1:1, 2, 3, 4

    Table 2:5, 6, 7, 8

    Result: 1, 5

    2, 6

    3, 7

    4, 8

    The 'build array' function seems to add all tables as lines... I guess I could transpose the table, but I want it runs in a Subvi in constructions of different loop and I feel a little uncomfortable with it - I guess one would be left with a completely mixed table. I was maybe blind just to find the right function?

    Cheers, Jessi

    Hi Jessi,

    by default, LV is combining tables in rows. So when you need columns you must transpose the sets or use a different indexing scheme...

  • A PROCEDURE to work out a coherent set of data

    We have a PROCEDURE that writes the results of each of the eight queries in the file. Data are not necessarily consistent with the files because the PROCEDURE takes some time to complete and users can change the data through the user interface while it is running.

    Is it possible to have the PROCEDURE (or PACKAGE) to work on a consistent set of data?

    You can quote out of context.

    • READ ONLY is an Oracle implementation only.
    • REPEATABLE READ is a standard, not an Oracle implementation.
    • SERIALIZABLE is the name of a standard, and is also the name of an Oracle implementation.

    READ ONLY has the same effect as the two standards, except that you cannot modify the data. However, the READ ONLY and SERIALIZABLE implementations are very different.

    If you say SERIALIZABLE, you tell Oracle to throw an exception if you never access the data that someone else has changed. The idea is, you want the database to behave as if you were the single active user; If someone changes the data you are interested in, this is no longer true and Oracle lets you know who.

    If you say READ ONLY, Oracle only will not raise an exception, it will just show you data as it was when you started the transaction.

    Very different effects in practice.

  • extend the set of data

    Hi all
    Please find the below example scenario where I have to extend the set of data.
    I working on oracle 10g and all by extending the data set, we should exclude weekends. The sample is only for 2 ID, but there may be more than one.
    Thanks for your help.
     
    
    ID                    ST_DT          END_DT          VAL 
    ====               ========         =======        ======== 
    1                  2/2/2011             2/4/2011       4 
    1                  2/4/2011             2/8/2011       5 
    1                  2/8/2011                            6 
    2                  1/28/2011           2/1/2011        2 
    2                  2/1/2011                            8 
    
    ID                    DT             VAL 
    ====                ========      =======        
    1                 2/2/2011           4 
    1                 2/3/2011           4 
    1                 2/4/2011           5 
    1                 2/7/2011           5 
    1                 2/8/2011           6 
    1                 2/9/2011           6 
    2                 1/28/2011          2 
    2                 1/31/2011          2 
    2                 2/1/2011           8 
    2                 2/2/2011           8 
    2                 2/3/2011           8 
    2                 2/4/2011           8 
    2                 2/7/2011           8 
    2                 2/8/2011           8 
    2                 2/9/2011           8 
    
    select 1 as id,to_date('02/02/2011','MM/DD/YYYY') as st_dt,to_date('02/04/2011','MM/DD/YYYY') as end_dt, 4 as val from dual 
    union all 
    select 1 as id,to_date('02/04/2011','MM/DD/YYYY') as st_dt,to_date('02/08/2011','MM/DD/YYYY') as end_dt, 5 as val from dual 
    union all 
    select 1 as id,to_date('02/08/2011','MM/DD/YYYY') as st_dt, null as end_dt, 6 as val from dual 
    union all 
    select 2 as id,to_date('01/28/2011','MM/DD/YYYY') as st_dt,to_date('02/01/2011','MM/DD/YYYY') as end_dt, 2 as val from dual 
    union all 
    select 2 as id,to_date('02/01/2011','MM/DD/YYYY') as st_dt,null as end_dt, 8 as val from dual; 

    Hello

    I guess, when end_dt is NULL, you want to use the current date as end_dt, and the results you have posted are the desired results if the query is executed on February 10, 2011.

    Here's one way:

    WITH     got_n_days     AS
    (
         SELECT     id, st_dt, end_dt, val
         ,     NVL ( end_dt
                  , TRUNC (SYSDATE)
                  ) - st_dt          AS n_days
         FROM     table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    )
    ,     cntr          AS
    (
         SELECT     LEVEL  - 1     AS n
         FROM     (
                   SELECT  MAX (n_days)     AS max_n_days
                   FROM     got_n_days
              )
         CONNECT BY     LEVEL <= max_n_days - 1
    )
    SELECT       d.id
    ,       d.st_dt + c.n          AS dt
    ,       d.val
    FROM       got_n_days     d
    JOIN       cntr          c  ON     c.n     < d.n_days
    WHERE       TO_CHAR ( d.st_dt + c.n
                  , 'DY'
                , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If necessary
                ) NOT IN ('SAT', 'SUN')
    ORDER BY  id
    ,            dt
    ;
    

    Basically, each line of your original table must be repeated n times, where n is the number of days between (included) st_dt and end_dt (not included). The first subquery calculates this number and the main query results by combining your data with a "counter table", NTRC, which contains a line for each value of n that you may need. This 'table' is generated in the second auxiliary request.
    The join produces a line for each day. The WHERE clause eliminates the Saturday and Sunday from these results.

    Thanks for posting the sample data in a useful form. That really helps.

    Published by: Frank Kulash, February 10, 2011 14:29

Maybe you are looking for