Sequence of output using tables

Hello

How can I use a table to provide an entry for a sequence of motor input binary?  I tried to do, but the numbers that I put in the table are not the same ones that come out.  Here is an example of what I tried.  After the release of the survey, they both each exit 16.  Any help would be appreciated.


Tags: NI Software

Similar Questions

  • How to use table 2 to draw an XY graph

    Hello ~

    I use for loop to teststand2014 to get 2 arraies with the same indicator loop as an attachment (Vi_array = input voltage, output power = Po_array).

    How can I build a XY Chart with these 2 arraies, Vi_array x and Po_array as Y?

    Thank you!

    You can create a table to 2 dimensions on the 2 tables, you mentioned and use the attributess of 'DataLayout' and 'DataOrientation' for the new table that you have generated. Please check attached sequence file created using TestStand 2010 version of how it can be done. I tested the graphics in XML reports.

  • How the sequence of output of analog signals in LabView

    Hello, I want a series of analog output signals of sequence using LabView to my box USB-6281. For example I'd like a sinusoid of output for 10 seconds, then a wave square for 20 seconds, then a triangle wave for 10 seconds. I want to do it automatically, so I have not put on a sine wave, wait 10 secodns and change it manually. I tried to use a straight sequence structure and using delays in the loops, but it did not work. IM relatively new to LabView so im just stuck here. any help would be greatly appreciated.


  • is there a vi for inputs/outputs using AWG (PXI-5421) and DIG (PXI-5122)?

    Hi, I'm looking for a vi that applies to an input through the AWG (PXI-5421) signal and measures the output through the SEARCH (PXI-5122). In particular, I'm trying to apply an entry by a multiplexer, then close this channel of the multiplexer through which the entry came and then measure the output using the SEARCH signal.

    Any help will be greatly appreciated.

    Thank you.

    Hello Deepjunior,

    I understand that you wanted to find an application that will be output on an AWG device and acquire a table digitizer at the same time. While there are many methods to achieve this, the easiest starting point would be to just take a simple example of niFgen and a simple example of niScope and run them together or combine them. According to exactly what your application requires, you may need to implement additional features, but it is a good starting point.

    In particular, you can find an example of this from the example of area developer program: OR-TCLK synchronize AWG and digitizer high speed. Basically, this example combines niFgen and niScope examples and using the API OR-TCLK to synchronize devices. I recommend watching the program and trying to start from there. Hope this helps,

  • Add the sequence to an existing table

    How can I add a sequence to an existing table in a new field called the User_Id? I use Oracle SQL Developer 3.0.04 version, and it provides an option to create a sequence that I did, called Log_Seq. So, I need to put this sequence in the Final_Log table under a column named User_Id. I'm stuck at this part. I'd appreciate any help I can get!

    Hello
    what you can do is to add a trigger on the table that make it work for you.

    For example:
    http://www.razorsql.com/features/oracle_add_sequence_trigger.html

    concerning
    Peter

  • One for the era: how to get this output using REGULAR EXPRESSIONS?

    How to get the bottom of output using REGULAR EXPRESSIONS?
    SQL> ed
    Wrote file afiedt.buf
    
      1* CREATE TABLE cus___addresses    (full_address                   VARCHAR2(200 BYTE))
    SQL> /
    
    Table created.
    
    SQL> PROMPT Address Format is: House #/Housename,  street,  City, Zip Code, COUNTRY
    House #/Housename,  street,  City, Zip Code, COUNTRY
    SQL> INSERT INTO cus___addresses VALUES('1, 3rd street, Lansing, MI 49001, USA');
    
    1 row created.
    
    SQL> INSERT INTO cus___addresses VALUES('3B, fifth street, Clinton, OK 74103, USA');
    
    1 row created.
    
    SQL> INSERT INTO cus___addresses VALUES('Rose Villa, Stanton Grove, Murray, TN 37183, USA');
    
    1 row created.
    
    SQL> SELECT * FROM cus___addresses;
    
    FULL_ADDRESS
    ----------------------------------------------------------------------------------------------------
    1, 3rd street, Lansing, MI 49001, USA
    3B, fifth street, Clinton, OK 74103, USA
    Rose Villa, Stanton Grove, Murray, TN 37183, USA
    
    SQL> The REG EXP query shouLd output the ZIP codes: i.e. 49001, 74103, 37183 in 3 rows.
    Published by: user12240205 on June 18, 2012 03:19
    /* Formatted on 2012/06/18 17:25 (Formatter Plus v4.8.8) */
    SELECT REGEXP_SUBSTR ((REGEXP_SUBSTR (full_address, '[^,]+', 1, 4)), '[[:digit:]]+') RESULT
      FROM cus___addresses
    
  • With LabVIEW how to control an instrument with a RS232 output, using a USB RS232 converter cable.

    With LabVIEW how to control an instrument with a RS232 output, using a USB RS232 converter cable, since I do not have rs232 ports. I have two instruments I want for the control in this way. One is a guarantee of strength Imada SPAS with RS232 output. The other is a micrometer Panasonic HL-G103-S-J laser sensor which is RS422. I have done significant programming LabVIEW using GPIB, but I have no experience with devices such as these. No matter what tutorial or examples would be greatly appreciated.

    Thank you.

    When you plug the USB-RS-232 converter, it installs a driver under Windows which makes it look like any other RS-232 port.  You may need to install the driver of everything that came on the CD with the converter.  It will get a Com as Com5 port number according to what is the next available number.

  • Spacing using tables

    Hi all, I am designing a 1 page template and goes well but a bit with a problem. I am using tables and trying to put an image directly into a topic. It looks perfect in Design view, but when I go to live mode view there is a little gap/spacing. I need directly under the heading. I'll also put another image directly under the first image.

    < / tbody >

    < /table >

    < table width = "805" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >

    < tbody >

    < b >

    < td width = "15" bgcolor = "#FBF5F6" > < table >

    "< td width ="775"bgcolor ="#FBF5F6"> < shipping h1 > < img src="Our_template/images/blue-bar.jpg "width ="775"height ="10"alt =" "/ > < / h1 > < table >

    < td width = "15" bgcolor = "#FBF5F6" > < table >

    < /tr >

    < b >

    < td bgcolor = "#FBF5F6" > < table >

    < td bgcolor = "#FBF5F6" > < table >

    < td bgcolor = "#FBF5F6" > < table >

    < /tr >

    < b >

    < td bgcolor = "#FBF5F6" > < table >

    < td bgcolor = "#FBF5F6" > < table >

    < td bgcolor = "#FBF5F6" > < table >

    < /tr >

    < b >

    < td bgcolor = "#FBF5F6" > < table >

    < td bgcolor = "#FBF5F6" > < table >

    < td bgcolor = "#FBF5F6" > < table >

    < /tr >

    < / tbody >

    < /table >

    < / body >

    < / html >

    Rather than using the sledgehammer that Ben and mages have recommended why not use a scalpel?

    Try to change this-

    Expedition to the France

    on this subject.

    Expedition to the France

  • Difference between USR and that uses tables from UPA_USR

    Hello

    I just want to know something about USR and uses tables of UPA_USR. It seems that these two table stores the same data. What is the purpose od UPA_USR table?

    Thank you

    MK

    Published by: user601746 on November 27, 2009 02:20

    Hi MK.

    UPA stands for verification of the user profile. All UPA * tables store audit data associated with the user rights, the group memberships. UPA_USR is one that stored audit of user profile data. It's the parent table, and he has a child table called UPA_FIELDS. For each user profile update there will be a single line in UPA_USR and for each field has changed there will be an entry in table UPA_FIELDS for the UPA_USR_KEY in the UPA_USR table. Also at any time there is a line in the table UPA_USR with UPA_USR_EFF_TO_DATE with a NULL value, indicating that it represents the current user profile.

    UPA is the table that stores the snapshot of the data for the user that includes the user profile, resource, and group memberships. It also features a column called DELTA, which is indeed a delta of changes that happened.

    Concerning
    YMI

  • I am trying to create a sequence to be used as a primary key in an Oracle table

    Hi guys

    I ODI version 10.3.5 and I'm trying to create a sequence that fills with row_id for a table. The schema is a database.
    And I want that this element will be the primary key of the table that is responsible to run the interface but I get questions.

    So please advise me.

    Hello

    Can you please provide the following details:
    1. What is the area of the execution of your sequence? Is it source, scene or target.
    2. what IKM you use (hopefully, you run the sequence in the staging or the target)?

    My understanding is when you check in not Null, all your lines going to the error table. So it gives no error.

    When you uncheck the not Null, it is in error because the database does not Null values in the primary key column.

    You can do the following to check if your sequence is working properly.
    Try to write an Insert Select query to DB and run it and see if it works properly.

    i.e.

    Insert (EMPL)
    EMPNO,
    ENAME,
    EMPLOYMENT,
    BISHOP.
    HIREDATE,
    SAL,
    COMM,
    DEPTNO
         
    )
    Select S_EMPNO. NEXTVAL,
    ENAME,
    EMPLOYMENT,
    BISHOP.
    HIREDATE,
    SAL,
    COMM,
    DEPTNO
         
    from EMP

    or if you can provide your query in this format, it will help find the question quickly. Please also indicate the KM.

  • How to use table 1 d of waveform in the Matlab Script

    I use Lavbiew to make the classification of Vibration signal.

    The first problem I encountered is the form of incorrect data.

    The output signals are 1 d arrary of waveform. I don't know how to use the Matlab Script.

    is someone can help me with this?

    I really appreciate your help.

    Hey beauzhang,

    I hope that you are well today. It certainly seems that we lack in some problems with the different sources and data types of wells. LVM VI Express load you have emerged from a table of waveforms. So we would need to do a few things. First of all, we need to ignore the range of interests, and we must get the waveform data elements table.

    I have provided an example of how we can extract the waveform in position 0 of the table and then pass the array of data values to the script node Y. I have configured the entry of the data of a table 1 d Reals node (by adding an entry and then the right of entry and select choose data type.)

    If you are interested in getting the values Y and build the table like you did in the script, you need to implement a different subset of table and looping mechanism in LabVIEW code to move each item to the script individually. However, I would recommend working with the entry level instead.

    I hope this helps!

  • Remove the entire sequence of xml using the stylesheet

    I have just begun to develop with TestStand and its XML report generating functionality and managed to skip most learning hedges previously except for this one:

    I want to be able to remove an entire sequence (and all the sub-sub-activities/sequences below).  I created successfully filtering expressions in a report.xsl custom to remove "failed" a steptype specific tests.  However, removing all THE measures/actions that belong to a sequence of parent has baffled me.

    To illustrate, I have 3 sequences in my mainsequence file called 'Group A', 'Group B', Group C".  I have three different style sheets that will percolate one of these three groups.

    If the (unfiltered) gross output looks like this:

    Group A

    -Start the sequence group A

    -Step 1

    -Step 2

    -Sous-suite A1

    -Step 1

    Group B

    -Start the sequence group B

    -Step 1

    -Step 2

    -B1 sous-suite

    -Step 1

    Group C

    -Start the sequence group C

    -Step 1

    -Step 2

    -Sous-suite C1

    -Step 1

    I would like to be able to filter the xml so that it deletes the Group B entirely, as follows:

    Group A

    -Start the sequence group A

    -Step 1

    -Step 2

    -Sous-suite A1

    -Step 1

    Group C

    -Start the sequence group C

    -Step 1

    -Step 2

    -Sous-suite C1

    -Step 1

    I am extremely new to XML and XSL style sheets and how they interact with TestStand.  Is what I'm trying to do possible?  Like a relief, I suppose I could somehow tag each action in a sequence with the group that he runs sub - possibly by using a string in 'other results', but it would be very laborious and prone to error.

    Any guidance is appreciated.

    Thank you for your time,

    Matt

    SOLVED!

    Turn, the response was not as difficult as I thought.  The action to remove an entire sequence is actually not very different from remvoing one step 'failed' or 'NI_FLOW' steptype.

    The snippet for the solution is shown below and may be merged with anything that currently exists in your .xsl style sheet:

    function CheckIfStepSatisfiesFilteringCondition_node(node)
        {
           //ADD_STEP_FILTERING_CONDITION
           //Modify the filtering condition here to filter steps shown the report.
    
           //Grab the displayed step name
                 var stepName = node.selectSingleNode("Prop[@Name = 'TS']/Prop[@Name = 'StepName']/Value").text;
    
                 //Test if step name corresponds to sequence desired for removal ("Group B" in this example)
                 if (stepName=='Group B')
                   return false;
           return true;
         }
    

    If a step name never matches 'Group B', not only is removed from this row of the report, but all measures under this parent are also deleted.  It's exactly what I was describing in the op.

  • Insert steps in sequence of runtime using DefaultSequenceValues

    As part of the sequence call step type custom that I see, I want to add steps to the sequence called, but only when running.

    I found the runtime class methods to modify the copy of the length of the sequence: News/Set/Get/Clear SequenceDefaultValues, but I'm getting strange errors when I use them to try to insert a step. Change the properties of the sequence (for example GoToCleanupOnFail) works very well.

    When I use these API methods to try to insert the step in the single sequence LENGTH, I get an error index invalid step '0' for 'Setup' phases 'Tests' sequence.

    Locals.SequenceRef = RunState.SequenceFile.GetSequenceByName("Tests"),
    Locals.DefaultSequence = RunState.Execution.NewSequenceDefaultValues(Locals.SequenceRef),
    Locals.StepClone = RunState.Sequence.GetStepByName("Label",StepGroup_Setup).AsPropertyObject.Clone("", PropOption_CopyAllFlags | PropOption_DoNotShareProperties),Locals.DefaultSequence.AsSequence.InsertStep(Locals.StepClone, 0,StepGroup_Setup),
    RunState.Execution.SetSequenceDefaultValues(Locals.DefaultSequence,SeqDefValueScope_Execution)
    

    I found this similar code works for y to insert the step of the edit-time sequence:

    Locals.SequenceRef = RunState.SequenceFile.GetSequenceByName("Tests"),
    Locals.StepClone = RunState.Sequence.GetStepByName("Label",StepGroup_Setup).AsPropertyObject.Clone("", PropOption_CopyAllFlags | PropOption_DoNotShareProperties),Locals.SequenceRef.AsSequence.InsertStep(Locals.StepClone,0,StepGroup_Setup)
    

    I found in my research that the SequenceDefaultValues methods have been designed for the shipper of the property. It's using more current would be updating the inhabitants of the sequence. Change the steps in the sequence not supported?

    The error, I guess there is an incompatibility somewhere between the table of the Sequence.Setup [] array (which is updated) sequence steps and another value that stores the number of steps in the installation step group (which is not updated). In addition, the error refers to the configuration 'phase' not 'step group', which implies to me that it's an internal engine error, NOR is generally cautious with their nomenclature for the outside facing error messages.

    I also found this old KnowledgeBase of TestStand 2.0 which says that TestStand handles an internal pedometer for the current step group. Is there something similar happening here?

    Attached is a sequence of TestStand 4.2.1 file that shows the error in more simple one case I can do (unfortunately 4.2.1 is the version is using my client, and they have not been convinced to further improve).

    Hi Josh,.

    I appreciate the detailed post!  After some research, the problem here is that when a subsequence stage called a sequence, it uses the copy of the file edit-time to verify the number of steps, but tent then run the copy of the execution, which is different.  Because there is a mismatch, the error occurs.  I have found a solution that may work for you, but first I want to point out that TestStand supports not structural changes of any file of sequence that is currently responsible for execution. The term "structural change" includes things like:

    • Add or remove steps
    • Add or remove sequences
    • Add or remove properties
    • Changing the settings of the module or adapter step

    This is why the sequence editor prevents you from changing a file of sequence while it running. Operations such as changing the property values are not considered to be 'structural change', that is why the shipper of the property can change the limits of dynamic sequences successfully.

    The solution is to create a new sequence file to contain a clone of the sequence you change and then load this file of sequence dynamically step of calling sequence.  Using this method, the new sequence file is not loaded for execution until when structural changes are complete.  In addition, because the execution copy is not created until the sequence do not call, using the methods SequenceDefaultValues is more necessary.  I have attached a modified version of your example that illustrates this approach.

    If this approach does not work in your case, let me know and we can look into other possible methods to go about it.

  • ODI 12 c: IKM for differential insert and update with a sequence in the target table

    Hello

    I have a map where I fill in a column of my target table using a database sequence. Now my mapping is supposed to load the target gradually table. So I need a revenge for update and incremental insert. Now with this differential IKM it compares all the columns to match all colmuns line to understand, it should be an insert or update. Now, the following code shows that when the ROW_WID is loaded with a sequence of database.

    If NOT EXISTS

    (select 1 from W_LOV_D T

    where T.ROW_WID = S.ROW_WID

    and ((T.CREATED_BY = S.CREATED_BY) or (T.CREATED_BY IS NULL and S.CREATED_BY IS NULL)) and

    ....

    ....

    < the rest of the comparison of columns >

    )

    So when running ODI returns following error

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "S". "" ROW_WID ": invalid identifier

    Please suggest if there is no other IKM I should use or if there is another way around it without changing the code IKM...

    Hi Marc,

    Thanks for your reply.

    I had solved it. The incremental update process inserts all rows from the source table to I$ table that exists in the target table. It does so by the where sql such as mentioned in my questions as

    WHERE THERE is NOT ( . COLUMNS = . COLUMNS)

    Now in the incremental update IKM Oracle to retrieve all the columns it uses the substitution with parameter as TABLE TARGET. Due to this column sequence will in the comparison and the request fails. When I used the IKM SQL incremental update it used INTEGRATION TABLE as parameter table to pick up the columns, as I'd mentioned in the target sequence is run, so it does not get the sequence column.

    Simple answer: to solve this, use incremental update of the SQL IKM.

    Thank you

    SM

  • How to get this challenge of output using joint?

    We will create a document XML E2B to query an Oracle Argus Pharmacovigilance DB.  Problem is when trying to generate the tag < drugs >.

    -A drug (or product) can have multiple schemas.

    -A drug can have several indications.

    If a product has several treatment regimens and the indications must be created 1 < drugs > tag to each plan and each indication. However, let us assume that there is only 1 sign and 1 plan, we should produce 1 single tag. If we have 2 regimens and directions 1, we should be producing 2 labels. 1 label must include 1 plan and 1 sign and the other tag should have the indication of information etc...

    Like this:

    If a drug (product) 1 indication and 1 plan we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    If the drug has 2 indications and 2 diagrams then we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < system > 2 < / plan >

    < indication > 2 < / indication >

    < / drugs >

    If a drug has 2 directions and following the 1 pattern, we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < indication > 2 < / indication >

    < / drugs >

    If a drug has 1 indication and 2 diagrams, then like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < system > 2 < / plan >

    < / drugs >

    and so on...


    I am trying to create a query to get the records to do this, but have problems.  I created 3 examples of tables with test data. It seems that this can be done by using joins. I do not know. Can someone tell me

    drop table Case_Prod_Indications_;

    drop table Case_Dose_Regimens_;

    drop table Case_Product_;

    Create Table Case_Product_

    (

    Number of Case_Id

    Number of Seq_Num,

    product_id VARCHAR2 (5).

    reported_Name Varchar2 (15).

    Constraint Case_Product_Pk Primary Key (Case_Id, Seq_Num)

    );

    Create Table Case_Dose_Regimens_

    (

    Number of Case_Id

    Number of Seq_Num,

    Number of Log_No

    Regimen_Description Varchar2 (20).

    Constraint Case_Dose_Regimens_Pk Primary Key (Case_Id, Seq_Num, Log_No),

    Constraint Regimens_2_Product_Fk Foreign Key (Case_Id, Seq_Num) made reference Case_Product_ (Case_Id, Seq_Num)

    );

    Create Table Case_Prod_Indications_

    (

    Number of Case_Id

    Number of Prod_Seq_Num

    Number of Seq_Num,

    Indication Varchar2 (25).

    Constraint Case_Prod_Ind_Pk Primary Key (Case_Id, Prod_Seq_Num, Seq_Num),

    Constraint Foreign Key (Case_Id, Prod_Seq_Num) to indics_2_Product_Fk references Case_Product_ (Case_Id, Seq_Num)

    );

    Case_Product_ p, Case_Dose_Regimens_ r's Case_Prod_Indications_ I

    We always want an output for a particular case_id ONLY.

    Scenario1: Product has only been inserted to case_product, with no product_id, but with a reported indication.

    INSERT INTO case_product_ VALUES (100, 1, NULL, 'Panadol');

    COMMIT;

    Output should be: 1 plug as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    100                 1                         null                          Panadol                          null                                       null

    Request used:

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    WHERE

    p.case_id = 100;

    Output is OK? : YES.

    Scenario2: Product diagrams a.

    INSERT INTO case_product_ VALUES (200, 10, 3, "Disprin");

    INSERT INTO case_dose_regimens_ VALUES (3, 1, 10, 200 mg');

    INSERT INTO case_dose_regimens_ VALUES (200, 10, 2, 5 mg');

    COMMIT;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    200                10                          3                          Disprin                          3mg                                         null

    200                10                          3                          Disprin                          5mg                                         null

    Request used: same as above, but with case_id = 200.

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    Where

    p.case_id = 200;

    Output is OK? : YES.


    Scenario3: Product has patterns AND directions. Here, there are more indications that treatment regimens.

    INSERT INTO case_product_ VALUES (300, 30, 5, "Aspirin");

    INSERT Into Case_Dose_Regimens_ Values (300, 30, 1, 65 MG');

    INSERT INTO case_prod_indications_ VALUES (300, 30, 1, 'Bread');

    INSERT INTO case_prod_indications_ VALUES (300, 30, 2, 'Vomiting');

    COMMIT;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                30                               5                          Asprin                          65MG                                    Pain

    300                30                               5                          Asprin                          null                                         Vomiting

    Request used: same as above, but with case_id = 300.

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    Where

    p.case_id = 300;

    Output is OK? : No. we get 65MG for the 2nd record as well.

    Scenario4: Product has patterns AND directions. Here there are patterns and equal information.

    INSERT Into Case_Dose_Regimens_ Values (4, 2, 30, 300 kg');

    commit;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                30                          5                          Asprin                               65MG                                    Pain

    300                30                          5                          Asprin                               4kg                                        Vomiting

    Request used: same as above.

    Output is OK? : no today, we get 4 rows.

    Scenario5: Product has patterns AND directions. Here, there are patterns more than indications.

    INSERT Into Case_Dose_Regimens_ Values (6, 3, 30, 300 g');

    commit;

    Output should be: 3 discs as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                     30                               5                                    Asprin                          65MG                               Pain

    300                     30                               5                                    Asprin                          4kg                               Vomiting

    300                     30                               5                                    Asprin                          6g                                         null

    Request used: same as above.

    Output is OK? : No. now we get 6 entries.

    How we do this? Or can not use joins and perhaps another method?

    Any help would be greatly appreciated.

    Hello

    I see it; you need in a few lines of possible exit, until all rows in related tables are included.  You don't care which line of case_dose_regimens gets paired with what line of case_prod_indications, you want just the 1st row of each table (or the 1st line of a table, if there is no matching data in the other) together on the 1st row of output and the 2nd row of each table set on 2nd line , and so on and in what order is used to define the "1st" and "2nd" is not important.  Is this fair?

    If so, then use the ROW_NUMBER analytic functions to assign numbers (I called it r_num) to identify the 1st, 2nd,... lines, like this:

    WITH schema AS

    (

    SELECT case_id, seq_num, regimen_description

    , ROW_NUMBER () OVER (PARTITION BY case_id, seq_num)

    ORDER BY log_no - or what you want

    ) AS r_num

    OF case_dose_regimens_

    )

    directions,

    (

    SELECT case_id, prod_seq_num, indication

    , ROW_NUMBER () OVER (PARTITION BY case_id, prod_seq_num)

    ORDER BY seq_num - or what you want

    ) AS r_num

    OF case_prod_indications_

    )

    SELECT p.case_id, p.seq_num, p.product_id, p.reported_name

    r.regimen_description

    i.indication

    OF case_product_ p

    LEFT OUTER JOIN

    (diagram r

    FULL OUTER JOIN indication I have ON i.case_id = r.case_id

    AND i.prod_seq_num = r.seq_num

    AND i.r_num = r.r_num

    )

    ON p.case_id = COALESCE (r.case_id

    i.case_id

    )

    AND p.seq_num = COALESCE (r.seq_num

    i.prod_seq_num

    )

    WHERE p.case_id (300)

    ORDER BY p.case_id, p.seq_num

    , COALESCE (r.r_num, i.r_num)

    ;

Maybe you are looking for

  • Cannot open mailboxes mailbox or call

    Cannot open yahoo or Sky inboxes or deal in them when I access it via Firefox. Also have the error message on Firefox that attempt to change my settings has been blocked. Cannot remove it.

  • Apple Watch stuck on the load screen

    My watch was almost dead when I put it on the charger, I checked on this shortly after and now it just displays the red indicator (red Flash) and next to the load time. Completely insensitive to everything I do and yes I tried a hard rese, the proble

  • HOW TO INSTALL A WIRELESS PRINTER MODEL HP OFFICEJET 6700 PREMIUM ON PACKARD BELL LAPTOP

    I have NEED to INSTALL MY HP OFFICEJET PRINTER 6700 PREMIUM without THREAD AS I ONLY HAVE A HEWLETT PACKARD computer LAPTOP so CAN NOT PUT IN THE DISK PROVIDED.

  • Windows Firewall/Internet connection problems

    Recently, a problem came with my Windows Firewall. I don't know what caused the change, but I'll be surfing the internet very well, when a small bubble appears in my task bar that says: "your computer may be at risk. No firewall is turned on. "This h

  • Computer does not accept the dates of restoration?

    The almost immediate and repetitive Google chrome crashing drove me to the restore point.  Then, during the last part of the "System Restore" process, computer says that he cannot accept a given restore date.  Afterwards, I checked every available da