Repeated sequences based on groups

I have a table with a GRP, nm, Nombre_Cols (number of times the sequence needs to be reset).

For example. for the GRP, the result would be something like
'A', 'AC', 2, 1
'A', 'AD', 2, 2
'A', 'AK', 2, 1 (LAST COLUMN REHEARSALS AFTER 2 IN THIS CASE)
'A', 'ALL', 2, 2
'A', 'A', 2, 1 (REPEAT)

And for B, he repeats after 3 so it would be 1,2,3, 1,2,3, 1, 2, 3, 1, 2



with tbl1 as
(SELECT "A" GRP, "AC" NM,
2 NOMBRE_COLS OF THE DOUBLE
UNION
SELECT 'A', 'AD ',.
2 FROM TWO
UNION
SELECT 'A', 'AK ',.
2 FROM TWO
UNION
SELECT 'A', 'ALL ',.
2 FROM TWO
UNION
SELECT 'A', 'A',
2 FROM TWO
UNION
SELECT 'A', "ANN."
2 FROM TWO
UNION
SELECT 'A', 'APRIL ',.
2 FROM TWO
UNION
SELECT 'A', 'AR ',.
2 FROM TWO
UNION
SELECT 'A', 'AT',
2 FROM TWO
UNION
SELECT 'B', "BA."
3 FROM TWO
UNION
SELECT 'B', 'BAQ. "
3 FROM TWO
UNION
SELECT 'B', 'BER ',.
3 FROM TWO
UNION
SELECT 'B', "BGG".
3 FROM TWO
UNION
SELECT 'B', "BJ."
3 FROM TWO
UNION
SELECT 'B', "BK."
3 FROM TWO
UNION
SELECT 'B', 'BM ',.
3 FROM TWO
UNION
SELECT 'B', "BNN,"
3 FROM TWO
UNION
SELECT 'B', "BOK,"
3 FROM TWO
UNION
SELECT 'B', 'BSQ. "
3 FROM TWO
UNION
SELECT 'B', "BW"
3 FROM TWO
UNION
SELECT 'C', "ARDUOUS."
1 FROM DUAL
UNION
SELECT 'C', "WHAT."
1 FROM DUAL
UNION
SELECT 'C', 'CR ',.
1 FROM DUAL
UNION
SELECT WOULD BE ', 'D2 ',.
4 FROM TWO
UNION
SELECT WOULD BE ', "D9"
4 FROM TWO
UNION
SELECT WOULD BE ', 'DA '.
4 FROM TWO
UNION
SELECT WOULD BE ', 'DEE. "
4 FROM TWO
UNION
SELECT WOULD BE ', 'DJ ',.
4 FROM TWO
UNION
SELECT WOULD BE ', "DKB"
4 FROM TWO
UNION
SELECT WOULD BE ', "DKG",.
4 FROM TWO
UNION
SELECT WOULD BE ', 'DKK.
4 FROM TWO
UNION
SELECT WOULD BE ","DLL","
4 FROM TWO
UNION
SELECT WOULD BE ', 'DLU.
4 FROM TWO
UNION
SELECT WOULD BE ', 'DM ',.
4 FROM TWO
UNION
SELECT WOULD BE ', "DNV"
4 FROM TWO
UNION
SELECT WOULD BE ', 'DP. "
4 FROM TWO
UNION
SELECT WOULD BE ', 'DQ. "
4 FROM TWO
UNION
SELECT WOULD BE ', "DR."
4 FROM TWO
UNION
SELECT WOULD BE ', "DS."
4 FROM TWO
UNION
SELECT WOULD BE ', 'MAS. "
4 FROM TWO
UNION
SELECT WOULD BE ', 'DT ',.
4 FROM TWO
UNION
SELECT WOULD BE ', 'TNT. "
4 FROM TWO
UNION
"SELECT WOULD BE", "DVF."
4 FROM TWO
UNION
SELECT WOULD BE ', "DOV",.
4 FROM TWO
UNION
SELECT WOULD BE ', "DZ"
4 FROM TWO
)
SELECT ROW_NUMBER() ON SNO (GRP ORDER BY NM PARTITION),
Tbl1.* tbl1

Final result should look like this (the last column is what I need to generate)
1. A 2 1 AC
14:00 2
3. A 1 2 AK
4. ALL 2 2
5. A 1 2
6. A 2 2 ANN
7. A 2 1 APR
8. A 2 2 AR
9 TO 2 1
1 B 3 1 BA
2B 2 3 BAQ
3 B 3 3 BER
4 B 3 1 BGG
5 B 3 2 BJ
6 B 3 3 BK
7 3 1 BM B
8 B 3 2 BNN
9 B 3 3 BOK
10 B 3 1 BSQ
11 B 3 2 P.C.
DQ 1 1 1 C
2 C THIS 1 2
CR 3 1 3 C
1 4 1 D D2
D9 D 2 2 4
DA 3 4 3 D
4 D DEE 4 4
DJ 5 1 4 D
DKB 6 4 2 D
D 7 4 3 DKG
DKK 8 D 4 4
9 D 4 1 DLL
10 D 4 2 DLU
D 11 DM 3 OF 4
DNV 12 4 4 D
D 13 4 1 DP
14 D 4 2 DQ
15 D 4 DR 3
16 D 4 4 DS
17 D 4 1 DSS
18 D 4 2 DT
D 19 4 3 TNT
DVF D 20 4 4
21 D 4 1 DVV
DZ 22 4 2 D

Thank you

Try this,

SELECT GRP,
       NM,
       NUM_COLS,
       CASE WHEN NUM_COLS = 1 THEN rn ELSE MOD ( rn - 1, NUM_COLS) + 1 END sno
  FROM (SELECT ROW_NUMBER () OVER (PARTITION BY GRP ORDER BY NM) rn, TBL1.* FROM tbl1)

OUTPUT
---------------
G NM    NUM_COLS        SNO
- --- ---------- ----------
A AC           2          1
A AD           2          2
A AK           2          1
A ALL          2          2
A AN           2          1
A ANN          2          2
A APR          2          1
A AR           2          2
A AT           2          1
B BA           3          1
B BAQ          3          2
B BER          3          3
B BGG          3          1
B BJ           3          2
B BK           3          3
B BM           3          1
B BNN          3          2
B BOK          3          3
B BSQ          3          1
B BW           3          2
C CDQ          1          1
C CE           1          2
C CR           1          3
D D2           4          1
D D9           4          2
D DA           4          3
D DEE          4          4
D DJ           4          1
D DKB          4          2
D DKG          4          3
D DKK          4          4
D DLL          4          1
D DLU          4          2
D DM           4          3
D DNV          4          4
D DP           4          1
D DQ           4          2
D DR           4          3
D DS           4          4
D DSS          4          1
D DT           4          2
D DTT          4          3
D DVF          4          4
D DVV          4          1
D DZ           4          2

45 rows selected.

SQL> 

G.

Tags: Database

Similar Questions

  • Retrieves a repeating sequence of PDM

    Hi experts,

    I have weeks of time series in files TDMS analog newspapers of a sequence repeatedly. I need to extract each of the repeated sequences and superimpose the waveforms to identify gaps between the sequences of (sample data reach including 5 blocks attached)

    The start of each block is defined by the pulse on the channel 'bubble detect Trigger. What I have to do is slot each TDMS between trigger impulses and all the slices on a graph to see how other channels line up overlay.

    Is there a way to achieve Signal express or TIARA?

    Help much appreciated.

    Hi Medwar,

    This should be close to what you're asking for.  Your trigger signal seems to go up in the middle of the event, so his forehead may not be the optimal basis for each event, but this should at least show you how you can copy it to the windows of time.

    Dim i, groups, channel, size
    ReDim Groups (0)
    Set Groups (0) = Data.Root.ActiveChannelGroup
    L1 = Groups (0). Channels (1). Properties ("Number"). Value
    L3 = 0
    R1 = 3.0
    Size = ChnLength (L1)
    L2 = ChnFind ("Ch (L1)" > R1 ", L3 + 1")
    Do
    IF L2 > 0 THEN
    i = i + 1
    < r1",="">
    L4 = ChnFind ("Ch (L1)" > R1 ", L3 + 1")
    IF L3 OR L4 = 0 THEN L4 = 0 = size
    ReDim Preserve Groups (i)
    FOR each channel in Groups (0). Channels
    (Channel) ChnLength = L2 - L4 + 1
    NEXT "channel
    Set Groups (i) = Data.Root.ChannelGroups.AddChannelGroup ((0) Groups)
    Groups (i). Name = 'Event' & I
    Call the DataBlCopy (Groups (0). Channels, L2, L2 - L4 + 1, (i) Groups. Channels, 1)
    FOR each channel in Groups (0). Channels
    (Channel) ChnLength = size
    NEXT "channel
    L2 = CLng (L4)
    END IF
    Loop until L4 = size
    Call ChnCharacterAll
    ' MsgBox UBound (Groups)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Automatically load a sequence based entered digital file to USE

    Hello

    I have question where I need to test 8 different DUT, one at a time, but it should automatically load the sequence file based on the digital inputs of the connection block of the UUT.  Each object to be measured has a coonector to the construction of the box where all the e / s is related to the material OR

    3 specific entries of my digital I/o card will show that USE is connected.  When the object to be measured is connected to a card the next logical state of e/o / s will tell USE which must be tested.

    0 0 0--> UUT 1

    0 0 1--> UUT 2

    0 1 0--> UUT 3

    1 1 0--> DUT 4

    1 0 0--> UUT 5

    1 0 1--> UUT 6

    1 1 0--> UUT 7

    1 1 1--> UUT 8

    How testand can load the specific sequence based on above of the digital I/o logic States. Can it be done in the process template? I am also building a simple operator TS interface on labview.

    Concerning

    VERP

    You will need to create a code for this function. You will need to read these digital I/o, select the file in the appropriate sequence.

    You need to open this file in sequence by using the ApplicationMgr.OpenSequenceFile method.

    Set the SequenceFileViewMgr.SequenceFile property with the open movie file reference. Then when you press the buttons of the chosen sequence Entry Point will be executed.

  • Increment sequence based on the existence value

    Hello

    I have a requirement,
    I need the value sequence based on the values exist in the database.
    Let me explain with an example of a column, I have values such as 1,2,3,4,5,6,7,8,10,12,14, etc...

    Here I have to generate the value of the sequence 9,11,13 follows...


    Logically it please suggest me... I try with While loop I could not reach again.

    We want to help you.

    Concerning
    Rambeau
     select  level missing_values
       from  dual
       connect by level <= (select max(your_column) from your_table)
    minus
     select  your_column
       from  your_table
    /
    

    For example:

    with t as (
               select level n from dual connect by level < 9 union all
               select 10 from dual union all
               select 12 from dual union all
               select 14 from dual
              )
    -- end of on-the-fly data sample
     select  level missing_values
       from  dual
       connect by level <= (select max(n) from t)
    minus
     select  *
       from  t
    /
    
    MISSING_VALUES
    --------------
                 9
                11
                13
    
    SQL> 
    

    SY.

  • How to set a repeating subform based on a value selected in a drop down list?

    Please forgive me if this is somewhere, but I spent a few hours searching and have not led to what.

    I have a drop-down list that allows the user to select the number of teams in you listing (1-5). Then I have a subform with all the necessary information for each team. I wish that the subform to repeat automatically based on the number selected in the drop-down list, because I need this information for each of the two teams by registering.

    Thank you!

    In the case of exit of the drop-down list, in formcalc, put something like:

    teams of var = $.rawValue

    var counter = 1

    While (counter< teams)="">

    Subform2.instanceManager.addInstance)

    Counter = counter + 1

    endwhile

    This assumes you have already 1 version of the subform. If you are a beginner with no condition (meter while doing<=>

  • How to create a new sequence based on the properties of the images?

    I thought there was a way to have the first automatically creates a new sequence based on the properties of the images rather than having to manually choose the predefined sequence.

    For example, I cancelled out of dialog sequence preset and imported a video I want to change. Rather than manually choose a predefined sequence, I would like to say first to create the sequence for me by looking at metadata (resolution, fps, etc) and creating the correct order for that specific item.
    I have CS4; Was it a new feature introduced in CS5?
    Thank you!

    Yes.  It's new for CS5.

    -Jeff

  • How to turn on the flat Structure of sequence based on a Boolean value?

    Hello

    I try to write a (attached) VI who enjoy an analog voltage that crosses one analog multiplexer. I am using a flat sequence structure to change the output of select signals to change the channel to be sampled. I wonder if I can turn on the structure when my Boolean input of the sample is TRUE?

    Based on the image (I can't watch the VI himself), he doesn't seem to be a necessity for the sequence at all. There is data connections Wizard DAQ to two scalar indicators, which implies that you are taking a single sample. No need to acquire multiple samples and throw all but one. The second sequence is certainly unnecessary.

  • Create a secondary named calculation in a repeating subform based on a drop down list?

    Hi all

    I need a little crazy script. Not sure it is even possible.

    What I have:

    1. repeating subform SummarySub amounts
      1. calculation at the end of the form TotalOver field gives the total dollar amount of all iterations of SummarySub

        so far, so simple. but then:
    2. I need another, repeating the SubRow subform at the end of the form to give to other total:
      1. based on the drop-down list the name of the originator in SummarySub
      2. and break out the totals of all iterations of SummarySub based on payer such as chosen by the user names.

    Ideally, the subform (the principal totals) (B) at the end of the form would add instances as the user leaves the field name of the payer. I was not able to find a way to make and to keep the value in the field (name of the payer) of the additional instance.

    All this makes sense?

    I'll appreciate any help.  I'm trying to learn more about JavaScript in LC, but my bills just keep coming...

    Thank you very much

    Laura

    Dropbox - AFBS_OverpaymentReport_121914.pdf

    Hi Laura,

    Take a look at the modified version of your form, https://sites.google.com/site/livecycledesignercookbooks/home/AFBS_OverpaymentReport_01011 5.pdf? attredirects = 0 & d = 1.  I added a subform called PayerTotals, which has a summary of insurance created in his event to calculate.  The code looks like.

    var oFields = xfa.resolveNodes("SummarySub[*]"); 
    
    var nNodesLength = _SummarySub.count; 
    
    var nSum = 0; 
    
    var insuranceCompanies = {}
    
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) { 
    
     var item = oFields.item(nNodeCount);
    
     if (!item.InsuranceCompany.isNull && !item.OverpaymentAmount.isNull) {
    
     if (insuranceCompanies[item.InsuranceCompany.rawValue]) {
    
     insuranceCompanies[item.InsuranceCompany.rawValue] += item.OverpaymentAmount.rawValue
    
     else {
    
     insuranceCompanies[item.InsuranceCompany.rawValue] = item.OverpaymentAmount.rawValue
    
      nSum += item.OverpaymentAmount.rawValue; 
    
    totalover.rawValue = nSum;
    
    _PayerTotal.setInstances(0);
    
    for (var insuranceCompany in insuranceCompanies) { 
    
     var payerTotal = _PayerTotal.addInstance();
    
     payerTotal.InsuranceCompany.rawValue = insuranceCompany;
    
     payerTotal.totalover.rawValue = insuranceCompanies[insuranceCompany]; 
    

    Hope this helps

    Bruce

  • update of column with the number of sequence based on the condition


    Hello

    Version of DB: database Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    Here's the script to reporduce:

    CREATE TABLE T2
    (
    PARAMLOCATION NVARCHAR2 (16).
    PARAMTYPE VARCHAR2 (3 BYTE),
    PARAMNUM VARCHAR2 (3 BYTE)
    )

    Insert into T2
    (PARAMLOCATION)
    Values
    ('49');
    Insert into T2
    (PARAMLOCATION)
    Values
    (« 12 ») ;
    Insert into T2
    (PARAMLOCATION)
    Values
    (« 50 ») ;
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ('loc51', 'B');
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ('loc52', 'B');
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ('loc53', 'B');
    Insert into T2
    (PARAMLOCATION)
    Values
    ("loc54");
    Insert into T2
    (PARAMLOCATION)
    Values
    ("loc55");
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ('aoc01', 'I');
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ('aoc02', 'I');
    Insert into T2
    (PARAMLOCATION)
    Values
    ("loc58");
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ("doc03", "DL");
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ("doc02", "DL");
    Insert into T2
    (PARAMLOCATION, PARAMTYPE)
    Values
    ("doc01", "DL");

    I should update the column in table (paramnum) function sequential paramtype as this: also you can not order in paramlocation, its like that paramlocation comes first start sequence ordering from there based on paramtype.

    PARAMLOCATIONPARAMTYPEPARAMNUM
    49
    12
    50
    loc51B1
    loc52B2
    loc53B3
    loc54
    loc55
    aoc01AI1
    aoc02AI2
    loc58
    doc03DL1
    doc02DL2
    doc01DL3

    Please advice.

    Hello

    I'll assume you have a column called load_order, which corresponds to the order of the lines:

    CREATE TABLE T2
    (
    NUMBER OF LOAD_ORDER
    PARAMLOCATION NVARCHAR2 (16).
    PARAMTYPE VARCHAR2 (3 BYTE),
    PARAMNUM VARCHAR2 (3 BYTE)
    ) ;

    Insert into T2
    (LOAD_ORDER, PARAMLOCATION)
    Values
    (1, '49');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION)
    Values
    (2, '12');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION)
    Values
    (3, '50');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (5, 'loc51', 'B');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (8, 'loc52', 'B');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (13, 'loc53', 'B');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION)
    Values
    (13.2, "loc54");
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION)
    Values
    (13.5, 'loc55');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (50, 'aoc01', 'I');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (80, 'aoc02', 'I');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION)
    Values
    (81, 'loc58');
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (82, "doc03", "DL");
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (83, "doc02", "DL");
    Insert into T2
    (LOAD_ORDER, PARAMLOCATION, PARAMTYPE)
    Values
    (99, "doc01", "DL");

    Any data type, this column is or what are the values it contains, as long as you can derive from the order of the rows of values in the column.  (Of course, the values can be consecutive integers, only they do not have to be).  If you do not have this type of column, you don't have any order to your lines, and what you request is impossible.

    Since you have a load_order column, here's a way to get the results you requested:

    MERGE INTO dst t2

    WITH THE HELP OF)

    WITH got_grp AS

    (

    SELECT load_order

    paramlocation

    paramtype

    ROW_NUMBER () OVER (ORDER BY load_order)

    -ROW_NUMBER () OVER (PARTITION BY CASE

    WHEN paramtype IS NULL

    THEN 0

    END

    ORDER BY load_order

    ) AS the grp

    THE t2

    )

    SELECT load_order

    paramlocation

    ROW_NUMBER () OVER (PARTITION BY grp

    ORDER BY load_order

    ), Paramnum

    OF got_grp

    WHERE the paramtype IS NOT NULL

    ) CBC

    WE (dst.paramlocation = src.paramlocation)

    WHEN MATCHED THEN UPDATE

    SET dst.paramnum = src.paramnum

    ;

    Results:

    LOAD_ORDER PARAMLOCATION BY

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

    1 49

    2 12

    3 50

    loc51 5 B 1

    loc52 8 B 2

    13 loc53 B 3

    13.2 loc54

    loc55 13.5

    50 aoc01 AI 1

    80 aoc02 AI 2

    loc58 81

    1 DL of 82 doc03

    2 DL doc02 83

    3 DL of 99 doc01

  • Generate a sequence based on a number

    I have two tables... I want to generate the sequence 01, 02, etc., based on total_sections

    Table 1:
    CourseID Total_sections
    1 101
    1 102
    3 103
    2 104

    I would like to create a table based on the table above and the result should look like:

    CourseID Section_Num
    101 01
    102 01
    103 01
    103 02
    103 03
    104 01
    104 02

    How can I achieve this?

    And two more :)

    With 11g recursive subquery factoring:

    WITH t (course, number_of_sections, section_num) AS (
     SELECT course, number_of_sections, 1
     FROM your_table
     UNION ALL
     SELECT course, number_of_sections, section_num+1
     FROM t
     WHERE section_num < number_of_sections
    )
    SELECT course,
           to_char(section_num, '09') as section_num
    FROM t
    ;
    

    With a bit of XML:

    SELECT t.course,
           to_char(x.num,'09') as section_num
    FROM your_table t,
         XMLTable( '1 to xs:integer($n)'
                   passing t.number_of_sections as "n"
                   columns num for ordinality ) x
    ;
    
  • Update a field in a sequence based on another field

    Hi all

    Small problem: -.

    CREATE THE TABLE:
     CREATE TABLE SEQTABLE 
    ("GRP_NUM" VARCHAR2(20), 
    "ORDER" NUMBER(5), 
    "NEW_GROP" VARCHAR2(20) ) ;
    DATA: -.
     
    INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP"     )     VALUES ('POIP1234567891234567' ,1 ,''  )
    INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('POIP1234567891234567' ,2 ,''  )
    INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('POIP1234567891234567' ,3 ,''  )
    INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('LKJG1234567897412589' ,1 ,''  )
    INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('JHGF1234567891234567' ,1 ,''  )
    INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('JHGF1234567891234567' ,2 ,''  )
    SELECT *.
     
    SQL> SELECT * FROM SEQTABLE;
    
    GRP_NUM                ORDER        NEW_GROP
    --------------------       ----------       -------------
    POIP1234567891234567          1
    POIP1234567891234567          2
    POIP1234567891234567          3
    LKJG1234567897412589          1
    JHGF1234567891234567          1
    JHGF1234567891234567          2
    Here my problem, I need to generate a smaller GRP_NUM in the field of the NEW_GROP. But can't just Substr field of origin. This field must be uniquie to the group.

    Desired results: -.
     
    GRP_NUM                  ORDER        NEW_GROP
    --------------------        ----------       -------------
    POIP1234567891234567          1             10001
    POIP1234567891234567          2             10001
    POIP1234567891234567          3             10001
    LKJG1234567897412589          1             10002
    JHGF1234567891234567          1             10003
    JHGF1234567891234567          2             10003
    Any ideas guys
    me@MYDB> create table newgroup (id number,grp_num VARCHAR2(20));
    
    Table created.
    
    me@MYDB> create sequence seq_newgrp_id start with 1000 increment by 1;
    
    Sequence created.
    
    me@MYDB> insert into newgroup select seq_newgrp_id.nextval,grp_num from (select distinct GRP_NUM  from SEQTABLE);
    
    3 rows created.
    
    me@MYDB> commit;
    
    Commit complete.
    
    me@DBADB> select * from newgroup;
    
            ID GRP_NUM
    ---------- ------------------------------------------------------------
          1001 JHGF1234567891234567
          1002 LKJG1234567897412589
          1003 POIP1234567891234567
    
    me@DBADB> UPDATE seqtable s
       SET s.new_grop =
           (SELECT n.id FROM newgroup n WHERE s.grp_num = n.grp_num)
    
    me@MYDB> commit;
    
    Commit complete.
    

    Edited by: Kecskemethy November 18, 2010 01:55
    Update added at the end

  • Generation of a repeated sequence of 1

    How can I generate and send a sequence of 1111111... ? I want repetitive flow for estimation of gain of channel 1.

    I recommend having a look at the examples of learning included in the LabVIEW Communications:

    The exercise to "Learn"-> "Getting Started"-> "Overview of the FPGA Design Flow"-> "Algorithm design and test" shows you how to implement an OFDM transmitter using a "meter diagram" (MRD). A DSU is a language that simplifies the data flow that processes and can be run on the host and the FPGA without change. Looks like it's just what you are looking for - because if you want to send something on RF, you modulate, and a common approach is to use OFDM. It's just what is shown in this exercise! Take a look on OFDM Tx Flt solution.gmrd: If you want to have all of the carriers '1', simply change the sequence of entry accordingly.

  • How to change a 2008 Server-based unique work and the affect connected PC based domain, group

    Single server running Server 2008, Version 6.0, SP2 25 user license
    Configured as a 'working group '.

    12 PC connected as Vista Ultimate
    2 connect ed PC running Windows 7 Enterprise - these have problems to connect automatically to the server which is one of the reasons we change to a domain environment.

    You will need to connect a VPN to a backup off site location.  Who needs domain.

    Please repost your request in one of the appropriate Forums for Windows Server.  Thank you!

  • Hidden visible repeatable subform based on drop-down list selection.

    LiveCycle - hidden repeatable subform becomes visible when a "MO" is selected. However, if "MO" is replaced by "KS" or any other State in the expandable lines, visible subform should back to hidden.

    Hello

    to be able to do so, you should have your drop-down list in a repeatable subform which should be considered your main earthquakes Canada, so you can have 5 drop-down lists with each subform respectively 1 comes with it.

    So let's say that your drop-down list in a repeatable subform, and you have another subform linked to this drop-down list below

    in your drop down list exit event list, you should have if statements to determine what value is chosen, and then according to the selected value display you or hide the subform

    This.parent.index is the index of the subform you want to hide, if your combo is directly in the subform repeat you to the other subforms you hide / show

    If (this.getDisplayItem (this.selectedIndex) == "MO") {}

    Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "visible";

    } else {}

    Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "hidden";

    }

    I hope this helps!

  • XQuery: Can fill us 10 records with sequence based on a record

    I got a requirment which i wil get a single range GN record and corresponding I need to create a record of the range GN and 10 article (subtraction of RangeFrom and entablature) GN records. For a better understanding, I give you the payload.
    Input payload

    < ns0:InitDisconnectGNWorkflowRequest >
    < DisconnectionDetails >
    GN_1 < GN > < /GN >
    < RangeFROM > 1 < / RangeFROM >
    < RangeTO > 10 < / RangeTO >
    < disconnecttype > disconnecttype_1 < / disconnecttype >
    < CUGname > CUGname_1 < / CUGname >
    < / DisconnectionDetails >
    < / ns0:InitDisconnectGNWorkflowRequest >


    and the output should be

    < ns0:createDisconnectionServiceRequest xmlns:ns0 = "http://vodafone.gr/esb/bpm/servicedelivery/CustomerInitiatedDisconnectionProcess/1.0" >
    < serviceRequest >
    < active >
    < orderItem >
    < voiceItem >
    < gNRangeItem >
    < gNRangeDeatils >
    < fromGN > 1 < / fromGN >
    < toGN > 10 < / toGN >
    < / gNRangeDeatils >
    < GNRangeServiceItemId > VF_RANGE_HOL_INTEGRATION_ID_1 < / GNRangeServiceItemId >
    < / gNRangeItem >
    < gNItem >
    < > 1 < LARP > LARP
    < / gnItem >
    < gNItem >
    < > 2 < LARP > LARP
    < / gnItem > <!- and so on 10 Articles... in charge of the Source, we only had one record->
    < / voiceItem >
    < / orderItem >
    < / assets >
    < / serviceRequest >
    < / ns0:createDisconnectionServiceRequest >


    OT is possible to reach the load desired using Xquery? If we can achieve this using the XSLT. ???
    Separate GN records are inserted with the sequence from RangeFrom and RangeTo end.
    Here, in these cases 1-10


    Thanks in advance
    Raja

    Published by: user12893766 on August 18, 2010 12:04 AM

    Hi Raja,

    Use the below excerpt for your lines

    for $icount to 1 data($body/*:InitDisconnectGNWorkflowRequest/*:DisconnectionDetails/*:RangeTO)
    return

    {data ($icount)}

    }

    Thank you
    Sylvie

Maybe you are looking for

  • make a backup of recovery on external hard drive

    Hi allI want to restore my hp envy 15j063 and I want to do it on a flash drive. My flash drive is a sandisk who is diagnosed as a hard disk partition. Is it possible that I can use this disc as a destination of recovery?Thank youAli

  • NEITHER USB-6008 connect to thermocuples and pressure sensors, control valve

    I am endevoring to build a gasification plant biomass for bench scale test process control plans. NEITHER USB-6008/6009 will be adapted for use as a data acquisition. I'll take RTDS, thermocouples and pressure sensors. I don't want to use industrial

  • SCANNER 2300c (XP Pack3)

    Scan prints a page black and without words. Clues as to what is wrong? Any help is welcome. Thank you

  • Update continues

    my computer crashed, and all that I did, it was not good, so I decided to format and reload windows XP. As it was a disk that came with the PC and has about 5 years old I expect service packs and updates, but I can't turn on my PC without doing some

  • cannot turn off power 6330f pavilion.

    I want to replace the power supply of my Pavilion 6330f.  I had a lot of difficulty removing the original PS.  I took the four screws, but the PS is still being held instead of something that I can't locate.  Is there a clip or something else hidden