Multiple channel for the XY graph

Im trying to draw a table 1 d in the y-axis and sometimes in the X axis. When I probe values since the wire connecting the XY graph, I see the values also perfect that I need them. But I do not see the values on the graph.

Able to do the same thing with a waveform graph, but a chart XY im gives me a few more flexibility and benefits...

Thank you

Gokul Krishna S

Advertisement

Hi Eureka,

There's a Subvi, that you do not attach with this VI, and I can't run it.

Part of your problem is that your x axis has a single value rather than an array of values.  If you right-click on your chart and select Properties, then go to the locations tab, you can change views of marker.  If you do something larger than a single pixel, you should be able to see it on the screen.

Please also take a look at This example of community to the XY graphs.

Thank you

Lisa

Tags: NI Software

Similar Questions

  • reading of multiple channels on the oscilloscope

    Hey there everyone,

    First of all, thank you for taking the time to read this. I'm still relatively new to LabVIEW, but I read most of the bases.

    How is this issue work VISA.

    I have an oscilloscope which has sensors to 3 channels and I want to display 3 channels on the same graph. The example of VI, which is included with the driver allows me to access a channel however it also adds other features, such as the control device that I didn't need, I just want to read data from the oscilloscope.

    I will not be able to access the gear for a few days, but have started coding. Here's what I've coded so far.

    The first blue function is 'Reading of Array wave' and the second 'wave in table scale ".

    Am I allowed to access the VISA like this? Or is it illegal access that would cause problems?

    I tried to access several channels before, so I was in the laboratory, however they have always produced errors.

    I use an oscilloscope tektronix TDS2013C, Labview 2013 and that you have downloaded the driver concerned for my model.

    All relative links to learning tools or help would be greatly appreciated!

    -Nam

    Please read the manual on a reading and extraction.

    As I said, the reading will launch a new capture. When you call it 3 times, each record returned will be later time than the previous capture. Either do what I said or call an extraction 3 times now.

  • Select multiple channels for a single task - control and shift keys do not work

    Hello

    Following the advice of several other positions, I try to choose several physical channels in the drop-down list so that I can then use the function "unflatten channel channel" later. It seems that if I hold this key is pressed or cntrl, I should be able to select multiple channels in the list, however, this does not work for me. I tried to go in the "navigation key" property for the control channel to task, but there not all listed associations. Someone else has encountered this and found a solution?  I previously around that by declaring several channels by a colon (for example, ai1:3), but it does not work for the unflatten function.

    Thank you

    Claire.

    If I understand correctly, I think that you need to do is use a task property DAQmx. Try to use the channels property to get an array of strings.

  • BlackBerry Smartphones why do I get multiple contacts for the same person

    Recently, when I add a new contact the 9700 creates several entries. When I delete these multiple inputs, then it leaves about 10 spaces. If I let multiple entries for the same person, the next person that I add only then indicates once

    Why they appear more than once?

    How can I delete multiple entries so they do not reappear when I create the following entry?

    Help, please

    Try a simple reboot and see if the empty entries remain.

    With the BlackBerry device powered time, remove battery for a few seconds and then reinsert the battery to restart.

  • AcriveSync has created multiple numbers for the same contact

    I recently had my transferred to my new pre phone book and set up my corp email.

    A lot of my contacts are mixed up (last names starting with O come in T, and these records have multiple records for the same phone number.  How can I fix?

    Hey thanks - I thought about it.  Turns out there have a lof of contacts in my constituency of corp I do not even know (or use).  I went in a deleted them and now al is good.  Thank you!

  • NPL of multiple execution for the awr sql_id

    Hi Experts,

    NPL of multiple execution for the AWR sql_id,

    I followed questions

    1. What plan using opimizer tcurrently?
    2. make sure optimizer to choose good plans


    SQL > select * from table (dbms_xplan.display_awr ('fb0p0xv370vmb'));

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SQL_ID fb0p0xv370vmb
    --------------------

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Hash value of plan: 417907468

    ---------------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | TempSpc | Cost (% CPU). Time |
    ---------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 63353 (100) |
    | 1. UPDATE |
    | 2. SORT ORDER BY | 17133. 2978K | 3136K | 63353 (1) | 00:14:47 |
    | 3. HASH JOIN RIGHT SEMI | 17133. 2978K | 62933 (1) | 00:14:42 |
    | 4. COLLECTION ITERATOR PICKLER FETCH | |
    | 5. HASH JOIN RIGHT SEMI | 68530 | 11 M | 62897 (1) | 00:14:41 |

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    | 6. VIEW | VW_NSO_1 | 5000 | 35000 | 33087 (1) | 00:07:44 |
    | 7. COUNTY STOPKEY |
    | 8. VIEW | 127K | 868K | 33087 (1) | 00:07:44 |
    | 9. GROUP SORT BY STOPKEY | 127K | 2233K | 46 M | 33087 (1) | 00:07:44 |
    | 10. TABLE ACCESS FULL | ASYNCH_REQUEST | 1741K | 29 M | 29795 (1) | 00:06:58 |
    | 11. TABLE ACCESS FULL | ASYNCH_REQUEST | 1741K | 280 M | 29801 (1) | 00:06:58 |
    ---------------------------------------------------------------------------------------------------------------

    SQL_ID fb0p0xv370vmb
    --------------------
    SELECT ASYNCH_REQUEST_ID, REQUEST_STATUS, REQUEST_TYPE, REQUEST_DATA, PRIORITY, SUBMIT_BY, SUBMIT_DATE.

    Hash value of plan: 2912273206

    --------------------------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | TempSpc | Cost (% CPU). Time |

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 45078 (100) |
    | 1. UPDATE |
    | 2. SORT ORDER BY | 1323. 257K | 45078 (1) | 00:10:32 |
    | 3. TABLE ACCESS BY INDEX ROWID | ASYNCH_REQUEST | 1. 190. 3 (0) | 00:00:01 |
    | 4. NESTED LOOPS | 1323. 257K | 45077 (1) | 00:10:32 |
    | 5. THE CARTESIAN MERGE JOIN. 5000 | 45000 | 30069 (1) | 00:07:01 |
    | 6. UNIQUE FATE |
    | 7. COLLECTION ITERATOR PICKLER FETCH | |
    | 8. KIND OF BUFFER. 5000 | 35000 | 30034 (1) | 00:07:01 |
    | 9. VIEW | VW_NSO_1 | 5000 | 35000 | 30033 (1) | 00:07:01 |

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    | 10. UNIQUE FATE | 5000 | 35000 |
    | 11. COUNTY STOPKEY |
    | 12. VIEW | 81330 | 555K | 30033 (1) | 00:07:01 |
    | 13. GROUP SORT BY STOPKEY | 81330 | 1 429 K | 2384K | 30033 (1) | 00:07:01 |
    | 14. TABLE ACCESS FULL | ASYNCH_REQUEST | 86092 | 1513K | 29731 (1) | 00:06:57 |
    | 15. INDEX RANGE SCAN | ASYNCH_REQUEST_SUB_IDX | 1 | | | 1 (0) | 00:00:01 |
    --------------------------------------------------------------------------------------------------------------------------

    Hash value of plan: 3618200564

    --------------------------------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | TempSpc | Cost (% CPU). Time |

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 59630 (100) |
    | 1. UPDATE |
    | 2. SORT ORDER BY | 4474 | 777K | 59630 (1) | 00:13:55 |
    | 3. HASH JOIN RIGHT SEMI | 4474 | 777K | 59629 (1) | 00:13:55 |
    | 4. VIEW | VW_NSO_1 | 5000 | 35000 | 30450 (1) | 00:07:07 |
    | 5. COUNTY STOPKEY |
    | 6. VIEW | 79526 | 543K | 30450 (1) | 00:07:07 |
    | 7. GROUP SORT BY STOPKEY | 79526 | 1397K | 7824K | 30450 (1) | 00:07:07 |
    | 8. TABLE ACCESS FULL | ASYNCH_REQUEST | 284K | 5003K | 29804 (1) | 00:06:58 |
    | 9. TABLE ACCESS BY INDEX ROWID | ASYNCH_REQUEST | 71156 | 11 M | 29141 (1) | 00:06:48 |

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    | 10. NESTED LOOPS | 71156 | 11 M | 29177 (1) | 00:06:49 |
    | 11. UNIQUE FATE |
    | 12. COLLECTION ITERATOR PICKLER FETCH | |
    | 13. INDEX RANGE SCAN | ASYNCH_REQUEST_EFFECTIVE_IDX | 327K | | 392 (1) | 00:00:06 |
    --------------------------------------------------------------------------------------------------------------------------------

    Thank you
    -Raj

    Published by: tt0008 on August 22, 2012 20:34

    Hello

    (1) you can see what plan has been used lately by running this query:

    select begin_interval_time, plan_hash_value
    from dba_hist_sqlstat st,
            dba_hist_snapshot sn
    where st.snap_id = sn.snap_id
    and sql_id = 'fb0p0xv370vmb'
    order by begin_interval_time desc;
    

    However, there is no guarantee that the next time you run this query, the latest plan will be chosen.
    Periodically, the plan is regenerated (for example when new statistics are collected, is the structure of a table referenced in)
    the query is changed etc.), and you can get 4 plans, or even a new function of many factors
    (statistics, bind variable values, the optimizer, NLS etc settings settings.)

    (2) this question is too large for the answer to fit into a thread, there are books written on the subject. The short answer is:
    If you know which of the 4 plans is right for you, then you can use a stored outline to lock in (it seems that you are not on 11g so SQL Profiler are not an option for you).
    Or you can try to find out why the optimizer generates different plans and address the underlying issue (the most common reason is to bind peeking - but to say
    course, we need to know more, starting with the text of your query).

    Best regards
    Nikolai

  • Create graphics using multi-channel for measures and another single channel for the datetime type.

    Hello world

    I'm using Labview and DIAdem to create graphical reports and I use screws of connectivity and not the Express VI.

    The data is stored in a data base MySQL Inno.

    I use the following command to get the data I want to show the graphic report!

    SQL_ExecDirect (' select 'TimeStamp', 'Value' by 'TableX' where and taste =' %s and channel =' %s; "" ")

    And then I use:

    SQL_BindChannel ("Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh") to bind the data to the X axis of the graph.

    And after that, I use:

    SQL_BindChannel("SampleN","Value","n") to bind the data to the axis of the graph Y.

    I want to create the chart with more than a sample, I use the commands above on a loop.

    Now here's a printscreen of my problem.

    In the first iteration (green line), DateTime1C1 has the timestamp for sample1 but in the second portion (yellow line) DateTime1C1 has the timestamp for sample2, the third iteration (blue line) DateTime1C1 timestamp for sample3. etc.

    The time stamp of origin for each sample are 'lost' he re-wrote datetime1C1. and in the end, it shows only the timestamp for the 5th iteraction.

    How can I create a single graph with several lines (samples) and datetime an axe?

    THX in advance

    Hi AlexandreHSCas,

    If I understand your situation, the only thing you need to change is to create a new group in the DataPortal before each request.

    FOR i = 1 TO iMax
    NewGroupName = "application" & I
    Call GroupCreate (NewGroupName)
    Call GroupDefaultSet (GroupCount)
    Call SQL_ExecDirect ("select 'TimeStamp', 'Value' from ' TableX" including Sample =' %s and channel =' %s;) ")
    Call SQL_BindChannel (NewGroupName & "/ Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh")
    Call SQL_BindChannel (NewGroupName & "/ SampleN", "Value", "n")
    NEXT

    Then you can simply drag each group from the data on the same graph XY-portal, because each group has its own time warp, data points will be displayed correctly placed on the common X axis of the graph.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • Two indicators for the same graph.

    How to connect the same indicators for the chart even if you have it in different tabs?

    Looks like you want to use the same indicator in two different cases. It is not really possible, unless you want to use a local variable - which I would not recommend it. If you want something wire to the same flag from various cases, you need to place the flag outside the structure of the case, which makes a tunnel through the structure of the case.

    In addition, it seems that you want to the same graph in two different tabs in a tab control. Why use different tabs if you want the same information? Maybe you could redesign your GUI?

    But once again, as everyone said, share your code and it will be much easier for us to help :-)

  • Multiple failures for the new certificates of trust with ORA-28857

    We are seeing problems with the work of the API using UTL_HTTP on SSL start to fail with the new approved certificates. Just import these certificates in the portfolio results in a ORA-28857 and a corrupt portfolio. We use 11.2.0.1.  3 channels of trust do not now have. Include cert (fire hydrant and godaddy certs) chains of


    https://API.Betfair.com

    https://www.FlipKey.com/

    I had a support call open for the last month with no resolution.

    If anyone has the possibilities of solutions / solutions might just save me a few sleepless nights. The feature of our products is dying because of this problem!


    If the certificates are SHA2, they will not work in 11201... they are entirely supported 11203 upward.

  • How to place outgoing files to multiple channels for a single agreement

    Hi all
    We must send the single at two different (channels) locations of the TP even HIPAA 834 document. We have unique HIPAA 834 agreement with a TP and a channel. is it possible to add both outgoing channels TP for a single TP/agreement?

    Thank you
    Kathar

    Hi Kathar,

    is it possible to add both outgoing channels TP for a single TP/agreement?

    A TP can have several channels, but an agreement can have only one associated channel. You can opt for the Oracle B2B here broadcast feature.

    You can read about this feature here-

    https://blogs.Oracle.com/oracleb2bgurus/entry/broadcast_feature_in_oracle_as

    Please note that this blog was written for 10g but concept and implementation is same in 11g.

    You must create two profiles TP TP even (you must use a different name/identifiers for both) and then to be part of the same group by adding identifier 'Group' in the two profiles with the same value. Middleware pass the header ' comprising:"in the name in name or an action event header.» When executing B2B will send the same message for two profiles TP.

    Kind regards
    Anuj

  • Channels for the identification of the records by using the syntax for Connect By

    Hello

    Can someone help with the following problem please?

    Our database records evaluations of the child for families in difficulty. When get us in touch with them, ideallu:
    A child receives a preliminary assessment (evaluation).
    If they are deemed to have need for additional support, they are given a second assessment (B) that is triggered by the assessment and an ID of the trigger to identify what assessment he comes.
    If they are deemed to need further support, they are given a third evaluation (C) that is triggered by the 2 assessment and an ID of the trigger to show that it comes from the b. assessment
    This is also true for a fourth assessment (assessment) report that is triggered by the evaluation C.

    However, due to the poor implementation of this concept by our provider database and the lack of knowledge by the workers, we have 2 problems:

    (1) analysis has isn't always the starting point as a worker can start any assessment at any time, i.e. from c assessment.

    (2) in view of this, a child can have several evaluations of the same type, i.e. a x 3 C, 2 x B assessment assessment in no particular order.

    The problem:

    I need to identify the separate strings (desired_output) of intervention using the relationship between the registration ID and the ID of the trigger, as shown in the table below:
    CHILD_ID RECORD_ID TRIGGER_ID ASM_NAME REC_START_DATE            REC_END_DATE              DESIRED_OUTPUT         
    -------- --------- ---------- -------- ------------------------- ------------------------- ---------------------- 
    A00001   R297931              B        18-JUN-10                 18-JUN-10                 1                      
    A00001   R299381   R297931    C        23-JUN-08                 23-JUN-08                 1                      
    A00001   R133219              A        12-AUG-08                 12-AUG-08                 2                      
    A00001   R240118              A        30-OCT-09                 30-OCT-09                 3                      
    A00001   R604913              A        17-AUG-12                 17-AUG-12                 4                      
    A00001   R604943   R604913    B        17-AUG-12                 17-AUG-12                 4                      
    A00001   R604961   R604943    C        17-AUG-12                 03-SEP-12                 4                      
    A00001   R605195              B        25-AUG-12                 25-AUG-12                 5                      
    A00001   R605214              A        28-AUG-12                 28-AUG-12                 6                      
    A00001   R609999   R604961    D        03-SEP-12                 05-SEP-12                 4                     
     
    Data:
    select * from
    (select * from
     
    (select 'A00001' as child_id, 'R297931' as record_id, null  as trigger_id, 'B' as asm_name, to_date('18-06-2010','dd/mm/yyyy') as rec_start_date, to_date('18-06-2010','dd/mm/yyyy') as rec_end_date, 1 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R299381' as record_id, 'R297931' as trigger_id, 'C' as asm_name, to_date('23-06-2008','dd/mm/yyyy') as rec_start_date, to_date('23-06-2008','dd/mm/yyyy') as rec_end_date, 1 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R133219' as record_id, null as trigger_id, 'A' as asm_name, to_date('12-08-2008','dd/mm/yyyy') as rec_start_date, to_date('12-08-2008','dd/mm/yyyy') as rec_end_date, 2 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R240118' as record_id, null as trigger_id, 'A' as asm_name, to_date('30-10-2009','dd/mm/yyyy') as rec_start_date, to_date('30-10-2009','dd/mm/yyyy') as rec_end_date, 3 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R604913' as record_id, null as trigger_id, 'A' as asm_name, to_date('17-08-2012','dd/mm/yyyy') as rec_start_date, to_date('17-08-2012','dd/mm/yyyy') as rec_end_date, 4 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R604943' as record_id, 'R604913' as trigger_id, 'B' as asm_name, to_date('17-08-2012','dd/mm/yyyy') as rec_start_date, to_date('17-08-2012','dd/mm/yyyy') as rec_end_date, 4 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R604961' as record_id, 'R604943' as trigger_id, 'C' as asm_name, to_date('17-08-2012','dd/mm/yyyy') as rec_start_date, to_date('03-09-2012','dd/mm/yyyy') as rec_end_date, 4 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R605195' as record_id, null as trigger_id, 'B' as asm_name, to_date('25-08-2012','dd/mm/yyyy') as rec_start_date, to_date('25-08-2012','dd/mm/yyyy') as rec_end_date, 5 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R605214' as record_id, null as trigger_id, 'A' as asm_name, to_date('28-08-2012','dd/mm/yyyy') as rec_start_date, to_date('28-08-2012','dd/mm/yyyy') as rec_end_date, 6 as desired_output from dual) union all
    (select 'A00001' as child_id, 'R609999' as record_id, 'R604961' as trigger_id, 'D' as asm_name, to_date('03-09-2012','dd/mm/yyyy') as rec_start_date, to_date('05-09-2012','dd/mm/yyyy') as rec_end_date, 4 as desired_output from dual)) child_records
    Originally, I thought to use Oracle Connect By syntax, but it does not (as far as I can work on!) because I have no start condition (the string of assessments can start A or B or C or D) which leads to duplication of lines.

    I thought I could use connect_by_root to group common assessments, but I am not convinced that this will give consistent results.

    -------------------------
    select
    child_records.*, 
    connect_by_root(nvl(trigger_id,record_id)) chain_id
    from child_records
    connect by trigger_id = prior record_id
    --------------------

    Is an alternative, possibly using trigger_id = above lag(record_id,1,null) (child_id order partition of...) but the assessments are in no particular order, I don't think I can specify a command clause...?

    Can anyone help to generate the desired output please?

    Thank you

    TP

    Hello

    Little Penguin says:
    ... However, due to the poor implementation of this concept by our provider database and the lack of knowledge by the workers, we have 2 problems:

    (1) analysis has isn't always the starting point as a worker can start any assessment at any time, i.e. from c assessment.

    (2) in view of this, a child can have several evaluations of the same type, i.e. a x 3 C, 2 x B assessment assessment in no particular order.

    This isn't necessarily a bad design. If it really fits your business rules is another matter. But as a means to represent events from cause to effect, to be used to CONNECT BY queries, it makes sense.

    The problem:

    I need to identify the separate strings (desired_output) of intervention using the relationship between the registration ID and the ID of the trigger, as shown in the table below:

    Let me assure you that I understand. You don't really have an desired_output column; you will need to that derived from other columns. Right?

    CHILD_ID RECORD_ID TRIGGER_ID ASM_NAME REC_START_DATE            REC_END_DATE              DESIRED_OUTPUT
    -------- --------- ---------- -------- ------------------------- ------------------------- ----------------------
    A00001   R297931              B        18-JUN-10                 18-JUN-10                 1
    A00001   R299381   R297931    C        23-JUN-08                 23-JUN-08                 1
    A00001   R133219              A        12-AUG-08                 12-AUG-08                 2
    A00001   R240118              A        30-OCT-09                 30-OCT-09                 3
    A00001   R604913              A        17-AUG-12                 17-AUG-12                 4
    A00001   R604943   R604913    B        17-AUG-12                 17-AUG-12                 4
    A00001   R604961   R604943    C        17-AUG-12                 03-SEP-12                 4
    A00001   R605195              B        25-AUG-12                 25-AUG-12                 5
    A00001   R605214              A        28-AUG-12                 28-AUG-12                 6
    A00001   R609999   R604961    D        03-SEP-12                 05-SEP-12                 4                     
    

    Data:...

    Thanks for the display of the data of the sample; that really helps.

    Originally, I thought to use Oracle Connect By syntax, but it does not (as far as I can work on!) because I have no start condition (the string of assessments can start A or B or C or D) which leads to duplication of lines.

    Is not

    START WITH  trigger_id  IS NULL
    

    identify a starting point? If something has not been triggered by something else, it is not a starting point? It is actually quite common in the hierarchical tables.

    I thought I could use connect_by_root to group common assessments, but I am not convinced that this will give consistent results.

    I'm not sure that you understand the problem. What do you mean by "consistent results? The doubt that you are worried, what exactly?

    -------------------------

    select
    child_records.*,
    connect_by_root(nvl(trigger_id,record_id)) chain_id
    from child_records
    connect by trigger_id = prior record_id
    

    You got right. If I understand what you mean by consistent results, it will bring them. You want to START to condition, of course, and as the starting lines will never have a trigger_id, there is no need to tell

    CONNECT_BY_ROOT  NVL (trigger_id, record_id)   AS chain_id
    

    You can simply say

    CONNECT_BY_ROOT  record_id   AS chain_id
    

    This will be particularly well idnetify the strings of their record_ids. Looks like you want to assign new sequence numbers (1, 2, 3,...) to identify the channels. Which takes an extra step.

    --------------------

    Is an alternative, possibly using trigger_id = above lag(record_id,1,null) (child_id order partition of...) but the assessments are in no particular order, I don't think I can specify a command clause...?

    Right; LAG depends on the order and order tells us nothing to this problem.
    In fact, feeds means so little to this problem that an event can come before the event that triggered it.
    For example, if I understand the first two lines of your output

    CHILD_ID RECORD_ID TRIGGER_ID ASM_NAME REC_START_DATE            REC_END_DATE              DESIRED_OUTPUT
    -------- --------- ---------- -------- ------------------------- ------------------------- ----------------------
    A00001   R297931              B        18-JUN-10                 18-JUN-10                 1
    A00001   R299381   R297931    C        23-JUN-08                 23-JUN-08                 1                      
    

    C event was triggered by the event B, even if C took place two years before B.
    (Not that it is important for the SQL problem, but can you explain the logic of how events can come before or after the events that triggered them?) "I'm just curious.)

    Here's a way you can assign sequential numbers to identify the channels:

    WITH     got_d_num     AS
    (
         SELECT     c.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  child_id     -- Just guessing
                                   ORDER BY          NVL2 ( trigger_id
                                                  , 2     -- rows with trigger_ids come 2nd
                                       , 1     -- rows without come 1st
                                       )
                             ,             rec_start_date
                             ,             asm_name
                           )      AS d_num
         FROM    child_records  c
    )
    SELECT     child_id, record_id, trigger_id, asm_name, rec_start_date, rec_end_date
    ,     desired_output               -- if needed
    ,     CONNECT_BY_ROOT d_num     AS chain_num
    FROM     got_d_num
    START WITH     trigger_id     IS NULL
    CONNECT BY     trigger_id     = PRIOR record_id
    ORDER BY  child_id
    ,            rec_start_date
    ,       asm_name
    ;
    

    Output:

    `                                              DESIRED
    CHILD_ RECORD_ TRIGGER A REC_START REC_END_D   _OUTPUT  CHAIN_NUM
    ------ ------- ------- - --------- --------- --------- ----------
    A00001 R299381 R297931 C 23-JUN-08 23-JUN-08         1          3
    A00001 R133219         A 12-AUG-08 12-AUG-08         2          1
    A00001 R240118         A 30-OCT-09 30-OCT-09         3          2
    A00001 R297931         B 18-JUN-10 18-JUN-10         1          3
    A00001 R604913         A 17-AUG-12 17-AUG-12         4          4
    A00001 R604943 R604913 B 17-AUG-12 17-AUG-12         4          4
    A00001 R604961 R604943 C 17-AUG-12 03-SEP-12         4          4
    A00001 R605195         B 25-AUG-12 25-AUG-12         5          5
    A00001 R605214         A 28-AUG-12 28-AUG-12         6          6
    A00001 R609999 R604961 D 03-SEP-12 05-SEP-12         4          4
    

    This example uses rec_start to affect chain_num and also sort the output, but not to determine wht in a string. The first 3 events untrigered (in rec_start order) have been in August 2008, October 2009 and June 2010, while they were assigned chain_nums 1, 2 and 3, in that order. Antyhting that was triggered by them, directly or indirectly, gets the same chain_num if it happened before or after the starting point of the chain. Thus, the first line of the output, in June 2008, gets chain_num = 3. You have assigned desired_output = 1 on this line. If you can explain how you got the number 1, we can probably find a way to code, so that the calculated chain_num is identical to desired_num. In the above query, they are not the same, but they are related. Everywhere you specified desired_output = 1, the above query produces chain_num = 3. If the numbers are the same (for example desired_output = 4 = chain_num) it's just a coincidence.

    Note that when I used ROW_NUMBER, I did in a subquery, not in the main query where the CONNECT BY were made. Never use the analytical functions (for example, ROW_NUMBER) in the same query with CONNECT BY. The analytical functions are often the cause CONNECT BY conditions to be incorrectly evuated. I have never seen any literature on this subject and it doesn't always happen, but I suggest that you avoid to mix everything well.

    Published by: Frank Kulash, Sep 15, 2012 10:00

    Published by: Frank Kulash, Sep 15, 2012 10:44

    I just read the answer from John, who has a nice illustration of my last point: use of the separate petitions for both analytical and CONNECT BY. You can use the analytic function first, and then CONNECT BY, as I did, or you can do the first CONNECT BY and then use the analytic function (in a solution of John DENSE_RANK) later. Whatever it is, you must separate them.

  • OAM - map multiple URLS for the same web application

    Is OAM, posible to map multiple URLS to the same web application? When the user access to a different URL, it passes to the same application but set up with different strategy?

    In this case, this is the scenario that describes ROISSAC - as he says OAM cannot protect the same resource with two different strategies.

    Perhaps you could do this at the level of the network - if the two companies access the application through different proxy servers, you can use different identifiers to host for the two WebGates on proxy servers. This solution is easier to apply when there is a physical separation of users (for example, the internal/external users) rather than different users coming through the same path.

    Kind regards
    Colin

  • save multiple files for the web in JPEG max at a resolution of 800%

    I had more than 200 created illustrator files. They all have the same dimensions. I wanted an adobe illustrator script that saves all files for the web in jpeg.

    Export options must be max.resolution of all files should be increased to 800%.

    I think it's the reasoning

    Open a folder with all the files

    loop through each file

    Save for web each in jpeg format to the quality of resolution and up to 800%

    the names of all jpeg files should be the same from these illustrator files (if possible)

    I will be very thankful to you if you could help me

    Best regards,

    Hassan Ali

    As far as I understand your request it is also possible with a simple action in batch mode.

  • Multiple values for the same column in the columns of diffétent in the same row?

    Hi all
    I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:

    CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
    CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".

    Yes, that will produce two columns but will produce null values to empty and also two separate registers.


    Any ideas?

    Thank you

    Are you sure that this code works for you?

    Select ID
             ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime"
             ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END  as "Other"
    From table
    group by ID
    

    I guess the code above fails because MODE_CODE is not in your group by?

    My suggestion would be to put the CASE in the COUNT:

    Select ID
             ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime"
             ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END)  as "Other"
    From table
    group by ID
    

    CASE expressions return no. when the respective conditions are true and NULL otherwise.
    COUNTY will have non-null values.

  • Multiple aliases for the same subject?

    Hello world

    In OPM, is it possible to use several aliases for the same subject?

    I try to maintain the isomorphism of my wording of the policy.

    For example, my wording of the policy uses the words "person", hereinafter the "applicant" and "beneficiary" refers to the same person.

    I like to use "person", hereinafter the "applicant" and "the beneficiary" in my rules, but have the OPM recognize that whenever I write 'applicant' or 'the beneficiary', I'm actually referring to "the person".

    Is there a way to do this in OPM?

    An easy way to do this is to map through the underlying attributes in the rule itself.

    So you you would end up with rules such as (assuming that the entity is called 'the person'):

    the applicant is eligible if
      the applicant is aged over 18 years
         the person's age > 18
    

    It has not built based on synonym, as in most cases, the rules are more transparent without them.

    Published by: Davin Fifield, 12/07/2010 15:48

Maybe you are looking for

  • Puzzles of Apple TV

    Apple TV was in the living room suddenly stopped working; It can not connect to my WiFi. So I took the job Apple TV B of the room, put it in the living room so I could watch TV in the living room. It can not connect to my WiFi. Huh? I put Apple TV A

  • Satellite Pro M40: tab key keeps jumping

    Hi I have a satellite pro M40 notebook and tab keys keep showing up, even when I keep on hanging down...its only 3 months, this could be a sign that it could break altogether and I have to report it under warranty. Any suggestions? Thank you!Beavis

  • Equium L40 - 156 - WLAN indicator sometimes does not work

    Hello people - someone has an idea wha it is combat? I can't find a similar problem anywhere. The led for wireless works sometimes not - so I have to go to network connection and turn Cap wireless manually. -It lights not light but allows me to acces

  • Upgrade CPU satellite 1900 101

    Hi people!I have a few questions on my laptop. I know that is a bit old, but I have to stick with it: P OK, my intention is to update its card as much as possible. First, I changed the hard drive for a 40 GB one (just for me).I want to upgrade the me

  • No encuentro driver of philips mp3

    Connected a marca philips mp3 player a mi, lo leyo computadora, y dijo than estaba instalando el driver del device, pero después dijo than no habia could can. ahora cada vez what conecto el mp3 computadora hace ese sonidito of than algo conectado Hey