Store the previus result in one loop

Hello,
I need to work with the previus result of one function in one loop. How could I do it???
Really that I must to do Is compare the temperature in one moment with the previus moment temperature, and Could I to store the most up of them and accept to it the next time that I call this loop??
Could someone help me???
Thanks
Gonzalo

Gonzalo,
please take a look here.
Norbert B.
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • I have been sampling new imported drum loops. And if I adjust region to song or time strecth it updates the audio file in the library. How to stop this? I lost the original setting to one loop. automatically doing it ??

    I have been sampling new imported drum loops. And if I adjust region to song or time strecth it updates the audio file in the library. How to stop this? I lost the original setting to one loop. automatically doing it ??

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • Copy the inspection  result  from one lot to multiples lots!!

    Hi SAP expert,
    I want to copy the inspection  result  from one lot to multiples lots, currently i know how to setup  the copy to another lot(SAML Response from SAP ID Service ) , but  i dont know to do to multiples lot.
    ¿Someone can help me?
    Thank you

    First you have to customizing the functionality of Copy of Inspection Results using the following path, where you have to entry the inspection types, plant .etc., where you want to have the functionality.
    SPRO -> Quality Management -> Quality Inspection -> Make Settings for Copy of Inspection Results
    Then when you are in Record Result screen you select Menu -> Edit -> Copy Inspection Results ,
    then a pop-up window is displayed and you filled in with the inspection lot which has the results and then another pop-up window is displayed to select the characteristics that you want to copy.
    A.P.

  • UTL_SMTP to send all the query result in one mail

    Hello All,
    I have a procedure for Oracle User Password Expiry Notification via mail using UTL_SMTP
    Also, I have created a table (email_address) to store the email addresses
    TableName: EMAIL_ADDRESS (username, email)
    USERNAME
    EMAIL
    HR
    [email protected]
    SH
    [email protected]
    SAMPLE
    [email protected]
    TEST
    [email protected]
    My PL/SQL
    declare
    crlf VARCHAR2(2)  := chr(13)||chr(10);
    CURSOR c1 IS SELECT
    e.alternate_name,e.email,e.cc,u.expiry_date, round(u.expiry_date-sysdate) as date_diff
    FROM dba_users u, email_address e
    WHERE u.username=e.username;
    username VARCHAR2(50);
    email VARCHAR2(250);
    expire_date varchar2(50);
    date_diff  varchar2(50);
    sender VARCHAR2(40) := '[email protected]';
    message VARCHAR2(200);
    mailhost VARCHAR2(30) := 'x.x.x.x'; 
    mail_conn UTL_SMTP.connection;
    BEGIN
    message:=' user will expire in '; 
    OPEN c1;
    LOOP
    FETCH c1 INTO username,email,expire_date,date_diff;
    EXIT WHEN c1%NOTFOUND; 
    mail_conn := UTL_SMTP.open_connection(mailhost, 25);
    UTL_SMTP.helo(mail_conn, mailhost);
    UTL_SMTP.mail(mail_conn, sender);
    UTL_SMTP.rcpt(mail_conn, email);
    UTL_SMTP.data(mail_conn, 'To: ' || email || crlf || 'Subject: ' || '[Test Mail]: Oracle User Password Expiry Reminder(user: '|| username ||')' || crlf || 'Password of ' || username||message||' '||date_diff||'days'||' (Expiry Date: ' || expire_date ||');
    UTL_SMTP.quit(mail_conn);
    END LOOP;
    CLOSE c1;
    END;
    But when I execute the above PL/SQL, I am getting 4 different mails having each user password expiry information.
    But I want all the user password expiry information in one mail.
    Is it possible??

    declare
    crlf VARCHAR2(2)  := chr(13)||chr(10);
    CURSOR c1 IS SELECT 
    e.alternate_name,e.email,e.cc,u.expiry_date, round(u.expiry_date-sysdate) as date_diff 
    FROM dba_users u, email_address e 
    WHERE u.username=e.username;
    username VARCHAR2(50); 
    email VARCHAR2(250);
    expire_date varchar2(50);
    date_diff  varchar2(50);
    sender VARCHAR2(40) := '[email protected]';  
    message VARCHAR2(200);
    final_message varchar2(1000);
    mailhost VARCHAR2(30) := 'x.x.x.x';  
    mail_conn UTL_SMTP.connection; 
    BEGIN 
    message:=' user will expire in ';  
    OPEN c1; 
    LOOP 
    FETCH c1 INTO username,email,expire_date,date_diff; 
    EXIT WHEN c1%NOTFOUND;  
       final_message := final_message || 'user: '|| username ||')' || crlf || 'Password of ' || username||message||' '||date_diff||'days'||' (Expiry Date: ' || expire_date || '): ';
    END LOOP; 
    CLOSE c1;
    mail_conn := UTL_SMTP.open_connection(mailhost, 25); 
    UTL_SMTP.helo(mail_conn, mailhost);
    UTL_SMTP.mail(mail_conn, sender); 
    UTL_SMTP.rcpt(mail_conn, email);
    UTL_SMTP.DATA(mail_conn, 'To: ' || email || crlf || 'Subject: ' || '[Test Mail]: Oracle User Password Expiry Reminder('||final_message||')';
    UTL_SMTP.quit(mail_conn);
    END;

  • Store the rendered result

    Hello.
    I'm wondering if there is a way to take the reuslting image, after the shader is done with it, and store it as a bitmap.
    ave a application where I have a bunch if images(bitmaps) that I put on the scene on top of each other. Then I apply my shader on them as a blendShader. The final result is a nice blend of all the pictures. This works fine if I use 10-20 pictures. But what if I would like to blend 200 pictures, then It will be very heavy to preocess. The best would be if I could, after placed let's say 10 pictures on the stage, the store the result in a bitmap. So when I wan't to blend picture 21-40 i just place the bitmap I "created" first that cointains alll previous blends.
    I guess that the shader don't alter the bitmapdata , it only affect the drawing?
    So i'm basicly wondering if it's possible.
    //Sectoid01

    You can use shader job to have a target bitmap destination that you could cache.
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/ShaderJob.html
    You might have to do your own blending in that case though. There might be a trickier way to get the bits out of a display object, like using the BitmapData property through the  IBitmapDrawable interface, but that wouldn't let you grab the data from the middle of the stack. I think you'd need to do your own blending to do what you want.

  • Store the query results

    Hi,
    I have a sub-query,which occurs 8 times inside 8 different case conditions .Is there any way that i can execute it once and store the results for further use,,, so that next time i directly get the results of the query without having to parse it and execute it..I think this would improve the performance
    The subquery is
    WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset))Any suggestions ,help from all you masters.. i would be grateful

    Here is the complete query
    SELECT (CASE
               WHEN (NVL (mi.host_deal_nb, ' ') = ' ')
                  THEN (SELECT host_deal_nb
                          FROM mif
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE mi.host_deal_nb
            END
           ) hub_deal_no,
           (CASE
               WHEN (SUBSTR (NVL (mt.free_text2, 'XX,XXX'), 1, 2) = 'XX')
                  THEN (SELECT SUBSTR (free_text2, 1, 2)
                          FROM mtf1000
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE SUBSTR (mt.free_text2, 1, 2)
            END
           ) system_code,
           (CASE
               WHEN (SUBSTR (NVL (mt.free_text2, 'XX,XXX'), 4, 3) = 'XXX')
                  THEN (SELECT SUBSTR (free_text2, 4, 3)
                          FROM mtf1000
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE SUBSTR (mt.free_text2, 4, 3)
            END
           ) deal_code,
           CASE
              WHEN mi.mop = 'BOOK'
                 THEN CASE
                        WHEN mt.db_acc_off = 'PH1'
                           THEN 'T'
                        ELSE 'TT'
                     END
              WHEN mi.mop = 'SWIFT'
                 THEN 'TT'
              WHEN mi.mop = 'INTERO'
                 THEN 'TT'
              WHEN mi.mop LIKE 'DRFT%'
                 THEN 'DD'
              WHEN mi.mop LIKE 'CHEQ%'
                 THEN 'CO'
              ELSE 'LP'
           END payment_method,
           mi.mid,
           DECODE (mi.orig_mop,
                   'SWIFT', 'SWF',
                   'INTRERO', 'GPS',
                   'FEEDER', 'EBS',
                   'LPS'
                  ) iw_trns_type,
           DECODE (mi.orig_mt, NULL, mi.msg_type, mi.orig_mt) msg_type,
           DECODE (mi.orig_reference,
                   NULL, mi.REFERENCE,
                   mi.orig_reference
                  ) REFERENCE,
           DECODE (mt.orig_rfb, NULL, mt.rfb, mt.orig_rfb) related_ref,
           mi.value_date, mi.origvaluedate,
           (CASE
               WHEN mt.acc_no IS NULL
                  THEN (SELECT acc_no
                          FROM mtf1000
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE mt.acc_no
            END
           ) debit_hub_acc_no,
           (CASE
               WHEN mt.acc_type IS NULL
                  THEN (SELECT acc_type
                          FROM mtf1000
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE mt.acc_type
            END
           ) debit_hub_acc_type,
           (CASE
               WHEN mi.dbcurrency IS NULL
                  THEN (SELECT mi.dbcurrency
                          FROM mif
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE mi.dbcurrency
            END
           ) debit_hub_acc_currency,
           (CASE
               WHEN mt.cr_acc_no IS NULL
                  THEN (SELECT mt.cr_acc_no
                          FROM mif
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE mt.cr_acc_no
            END
           ) credit_hub_acc_no,
           (CASE
               WHEN mt.cr_acc_type IS NULL
                  THEN (SELECT mt.cr_acc_type
                          FROM mtf1000
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE mt.cr_acc_type
            END
           ) credit_hub_acc_type,
           (CASE
               WHEN mi.crcurrency IS NULL
                  THEN (SELECT mi.crcurrency
                          FROM mif
                         WHERE mid =
                                  (SELECT childmid
                                     FROM mfamily
                                    WHERE relation = 'FUNDCREDIT'
                                      AND parentmid IN (
                                             SELECT mid
                                               FROM batch_subset
                                              WHERE pk_batch_subset =
                                                                mi.pk_batch_subset)))
               ELSE mi.crcurrency
            END
           ) credit_hub_acc_currency,
           mi.cramount, mi.orig_currency, mi.orig_amount,
           (CASE
               WHEN (mt.fx_deal_tp = 'X')
                  THEN mi.dbamount * mt.dr_side_rate_am
               ELSE (CASE
                        WHEN (mi.crcurrency <> mi.currency)
                           THEN mi.dbamount
                        ELSE (CASE
                                 WHEN (mi.currency = mi.dbcurrency)
                                    THEN (mi.dbamount * mt.cr_rate)
                                 WHEN (mi.currency = mi.crcurrency)
                                    THEN (mi.dbamount * mt.dr_rate)
                              END
                     END
            END
           ) rmt_amt_in_lcl_ccy_eqv,
           CASE
              WHEN mt.fx_deal_tp = 'X'
                 THEN mt.dr_side_rate_am
              WHEN mi.crcurrency != 'PHP'
                 THEN 1
              WHEN mi.currency = mi.dbcurrency
                 THEN mt.cr_rate
              WHEN mi.currency = mi.crcurrency
                 THEN mt.dr_rate
           END exchange_rate,
           (CASE
               WHEN mt.fx_deal_tp = 'X'
                  THEN mt.cr_side_rate_am
            END) cross_rate, DECODE (mt.org_idcode, 'AC', mt.org_id, '') org_id,
           mt.org_bic, mt.org, mt.org_addr1, mt.org_addr2, mt.org_addr3,
           DECODE (mt.bnf_idcode, 'AC', mt.bnf_id, '') bnf_id, mt.bnf_bic, mt.bnf,
           mt.bnf_addr1, mt.bnf_addr2, mt.bnf_addr3, mt.obi, mt.charges,
           (SELECT CONTENTS
              FROM messagefreetext mr
             WHERE UPPER (fieldname) = 'Narrative_77B'
               AND mr.mid = mi.mid
               AND ROWNUM = 1) CONTENTS,
           mi.orig_sender, mi.service, mi.mop, mi.batch_msg_tp,
           mi.batch_payment_tp, mi.msg_class,
           (CASE
               WHEN (mt.fx_deal_tp = 'X')
                  THEN mt.cr_side_rate_am
               ELSE mt.cr_rate
            END
           ) cr_amt_in_lcl_ccy,
           (CASE
               WHEN (mt.fx_deal_tp = 'X')
                  THEN mt.cr_side_rate_am
               ELSE mt.cr_rate
            END
           ) exrate_cr_amt_lcl_ccy,
           (CASE
               WHEN (mi.non_stp = '1')
                  THEN 'Y'
               ELSE 'N'
            END) non_stp_indicator
      FROM (SELECT mid
              FROM mif ssmi
             WHERE NVL (ssmi.pk_batch_subset, 999999) IN (
                      SELECT NVL (smi.pk_batch_subset, 0)
                        FROM mtf1000 smt, mif smi
                       WHERE smt.free_text2 IN ('AF,IDP', 'AF,XFR', 'AF,TFR')
                         AND smi.posting_status = 'SUCCESSFUL'
                         AND smt.mid = smi.mid)
               AND ssmi.batch_msg_tp = 'I'
            UNION
            SELECT ssmt.mid
              FROM mtf1000 ssmt, mif smmt
             WHERE ssmt.free_text2 IN
                      ('HE,TFR',
                       'IR,TTI',
                       'IR,TTB',
                       'IR,CO',
                       'IR,DD',
                       'IR,ITO',
                       'IR,IRT'
               AND ssmt.mid = smmt.mid
               AND smmt.posting_status = 'SUCCESSFUL') ts1,
           mif mi,
           mtf1000 mt
    WHERE mi.posting_status = 'SUCCESSFUL'
       AND mi.msg_status = 'COMPLETE'
       AND NVL (mi.batch_payment_tp, ' ') NOT IN ('RTACH', 'ACHRT', 'DRO', 'DRI')
       AND mi.process_dt = TO_DATE ('20061222', 'YYYYMMDD')
       AND mi.office = 'PH1'
       AND ts1.mid = mi.mid
       AND mi.mid = mt.mid
       AND ((SELECT (CASE
                        WHEN (mif.complete_time >= memopost.update_date)
                           THEN (mif.complete_time)
                        ELSE (memopost.update_date)
                     END
               FROM mif, memopost
              WHERE mif.mid = mi.mid AND mif.mid = memopost.mid AND ROWNUM = 1) >
                          TO_DATE ('2008/02/05 10:12:24', 'YYYY/MM/DD HH24:MI:SS')
       AND ((SELECT (CASE
                        WHEN (mif.complete_time >= memopost.update_date)
                           THEN (mif.complete_time)
                        ELSE (memopost.update_date)
                     END
               FROM mif, memopost
              WHERE mif.mid = mi.mid AND mif.mid = memopost.mid AND ROWNUM = 1) <=
                          TO_DATE ('2008/03/06 20:00:00', 'YYYY/MM/DD HH24:MI:SS')
           )

  • Do not display the overall result for one KF

    Hi,
    Question is in the title, here is an explanation of what I want to get with a simple BEx query (without adding extra vba)
    2 KF : KF1 and KF2
    2 Caracteristics : let's say 0PLANT and 0CALMONTH
    0CALMONTH is displayed in line, 0PLANT in column
                         overall result    1701    1709    1710
    0calmonth        KF1               KF2      KF2     KF2
    01.2009           xxx               xxx       xxx     xxx               
    02.2009           xxx               xxx       xxx     xxx
    03.2009           xxx               xxx       xxx     xxx
    Basically what I want is to KF1 only for the aggregation of all plants and I want to display KF2 for each plant
    Do you think this is possible ?
    For now I only succeed in getting 
                         overall result    1701    1709    1710
    0calmonth        KF1  KF2      KF2      KF2     KF2
    01.2009           xxx               xxx       xxx     xxx               
    02.2009           xxx               xxx       xxx     xxx
    03.2009           xxx               xxx       xxx     xxx
    I checked the forum for a while and did not find the answer (zero suppress do not work on result)
    Thanks for you help,
    rgds,
    Sebastien

    Hi,
    I didnt get exactly for what you are looking for ,
    Chars : 0Plant, 0Calmonth....put these two in two new selections by creating a new structure in Rows
    KF:        what ever the KFs you need put them in Columns in a structure,
    then enable the Cell Reference, now you can hide the KF results by cell wise and/or column wise however you need,
    Regards
    ReddY A

  • Why do the LabVIEW examples that use the queue design have one loop in the top level and all the others as subvis?

    Specifically the Weather Monitor example under connectivity/Web Services and the FPGA design examples.
    There are several parallel loops. One of the parallel loops will be in the top level VI. The others are all in sub-VIs. After the third example I was looking at it seemed obvious this was being done as a standard, but I don't know why it matters.
    Why not all of them as SubVIs? Why not all of them as top level loops? (Well OK maybe not that one.)

    For me, it depends on what is happening in the parallel loops.  When I have modules that just need to run in parallel with the main loop, it helps reusability to have it a a subVI call.  I can then just copy that library to another project and use it.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Conditional looping. How to refer to the previous result s of looping?

    Hi,
    I'd like to repeat a sequence for second time only if the sequence failed first time. To do that I'd like to use the Looping feature from step properties. Question: how should I build the Loop Status Expression refering to the Step Staus (Pass/Failed) of first loop?
    Solved!
    Go to Solution.

    In the Looping properties in Loop Type select Pass/Fail count.  Then set the Stop after to 1 and iterations to pass.  You can set the maximum number of iterations to whatever value you desire (in your case it sounds like 2).  You can play with the numbers to fit your scenario.  As you play with the numbers you'll see the expressions values changing.
    I could give you a better answer if I understood exactly what you wanted but this will probably do what you want.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to Compare 2 CSV file and store the result to 3rd csv file using PowerShell script?

    I want to do the below task using powershell script only.
    I have 2 csv files and I want to compare those two files and I want to store the comparision result to 3rd csv file. Please look at the follwingsnap:
    This image is csv file only. 
    Could you please any one help me.
    Thanks in advance.
    By
    A Path finder 
    JoSwa
    If a post answers your question, please click &quot;Mark As Answer&quot; on that post and &quot;Mark as Helpful&quot;
    Best Online Journal

    Not certain this is what you're after, but this :
    #import the contents of both csv files
    $dbexcel=import-csv c:\dbexcel.csv
    $liveexcel=import-csv C:\liveexcel.csv
    #prepare the output csv and create the headers
    $outputexcel="c:\outputexcel.csv"
    $outputline="Name,Connection Status,Version,DbExcel,LiveExcel"
    $outputline | out-file $outputexcel
    #Loop through each record based on the number of records (assuming equal number in both files)
    for ($i=0; $i -le $dbexcel.Length-1;$i++)
    # Assign the yes / null values to equal the word equivalent
    if ($dbexcel.isavail[$i] -eq "yes") {$dbavail="Available"} else {$dbavail="Unavailable"}
    if ($liveexcel.isavail[$i] -eq "yes") {$liveavail="Available"} else {$liveavail="Unavailable"}
    #create the live of csv content from the two input csv files
    $outputline=$dbexcel.name[$i] + "," + $liveexcel.'connection status'[$i] + "," + $dbexcel.version[$i] + "," + $dbavail + "," + $liveavail
    #output that line to the csv file
    $outputline | out-file $outputexcel -Append
    should do what you're looking for, or give you enough to edit it to your exact need.
    I've assumed that the dbexcel.csv and liveexcel.csv files live in the root of c:\ for this, that they include the header information, and that the outputexcel.csv file will be saved to the same place (including headers).

  • How to execute unix command through odi and store the result in table

    I have to reconcile  if data is loaded in table from csv file or not . I have to create a oracle data integrator package/interface/procedure to execute unix command to count number of rows in the csv files and store the count result in a table then i have to query the loaded table and count number of rows there and store in the table and have to compare is counts are same or not,  Please assist me how to make package/interface/procedure to  execute unix command and store result in oracle table.
    Thanks in Advance

    Use ODI OS command tool in the ODI package.
    create an interface in ODI using LKM File to Sql and the output file generated with the csv file's row count as a source and the db table(where the count needs to be stored) as a target

  • Store SQL query results in db table

    Hi,
    I have a SQL query that produces a report table.
    Is it possible to automatically store the query results (or the report table) as a db table - without interrupting the current report building proces?
    Thanks,
    Dave
    Message was edited by:
    Dave Judge

    Hi Dave,
    You can also insert records into an existing table:
    INSERT INTO TABLEB (colA, colB, colC, etc) SELECT valA, valB, valC, etc FROM VIEWA WHERE etc etc
    This can be done during a page process that runs "Before Header" and you can base your report on the TABLEB. Obviously, you will need to maintain that table to ensure that it is only truncated where necessary, that one user doesn't try to access another user's data on that table and that each time your page is loaded it doesn't try to repopulate the table when you don't need it to.
    Another possiblity is to use a collection - which is user session based
    Andy

  • How can I move data from one loop to another?

    I am using LabVIEW to record and display data.  The problem that I have run into is that if I try to collect and display the data all in one loop data points are lost because the loop takes so long to execute.  I decided to break my program into two independent loops and the data is recorded at proper speeds, but now I cannot get the data out of the first loop and into the second loop.

    See my example for one method of how to setup the Queue which Omar suggested. You'll also see many other ways, most of which should be avoided until you get more experience.
    Communicating Between Loops
    Richard

  • SQL Query -How2bring multiple results into one field using Formatted Search

    Hi Everyone
    i am trying to bring in the results of the field dbo.Lot_ITEM.LOT using a formatted search into a row level using the following query:
    SELECT     dbo.LOT_ITEM.LOT
    FROM       dbo.DLN1 INNER JOIN dbo.LOT_ITEM ON dbo.DLN1.ItemCode = dbo.LOT_ITEM.ITEM
    WHERE     dbo.LOT_ITEM.ITEM=$[DLN1.ItemCode]
    however the result of the dbo.Lot_ITEM.LOT field could be more then one value depending on how many lots are assigned for that item
    (for example this query would be similar to assigning batch/serial numbers to an item being despatched - as you can choose multiple batches/serials depending on the quantities available and required and then move from the left to the right side of the selection window) if that makes sense!
    is it possible to bring in the multiple results into one field? and how can i amend the above query to include this?
    Thankyou in advance :o)
    Edited by: Asma Bi on Apr 23, 2008 7:22 PM
    Edited by: Asma Bi on Apr 23, 2008 7:24 PM

    Hi Suda
    Thanks for replying :o) but im not sure about the query?
    just to simplify it (as the query im working with is to do with 3rd party addons) i have used the serial/batchs field instead and used standard demo database fields from SBO 2005 sp01:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode='g1000' and dbo.ixvSerialNoFact.SRI1_BaseEntry = '193'
    The above brings me the relevant results but when i change it to be used in a formatted search:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode=$[dln1.itemcode] and dbo.ixvSerialNoFact.SRI1_BaseEntry = $[dln1.DocEntry]
    i cant seem to get it to work - now this may be because the serial number is not allocated until teh record is added to the system, however when this happens i am unable to go back in and manually trigger the query as the delivery note rows cannot be selected!
    i  think as what im originally wanting an answer for is same as this example, im wanting to know if this is even possible?
    Thanks
    Edited by: Asma Bi on Apr 24, 2008 3:53 PM
    Edited by: Asma Bi on Apr 24, 2008 3:55 PM

  • SQL Query - store the result for optimization?

    Good day experts,
    I am looking for advice on a report. I did a lot of analytic functions to get core data that I need to make my report and its takes around 50 min for SQL to complete. Now with this data I need to create 3 different reports and I cant use the same SQL since there is a lot of agregation (example would be group by product in one case and by client in 2nd). For each of those different group bys I need a different report.
    So how to create 3 reports from 1 SQL query without running the query 3 times?
    First thing that comes to mind is to store the result set into a dummy table and then query the table since the core data I get is around 300 rows and then do different group bys.
    Best regards,
    Igor

    So how to create 3 reports from 1 SQL query without running the query 3 times?
    You already know the obvious answer - store the data 'somewhere'.
    The appropriate 'somewhere' depends on your actual business requirements and you did not provide ALL of them.
    MV - if the query is always the same you could use an MV and do a complete refresh when you want new data. The data is permanent and can be queried by other sessions but the query that accesses the data will be frozen into the MV definition.
    GTT (global temp table) - if a NEW data load AND the three reports will ALWAYS be executed by a single session and then the data is NOT needed anymore then a GTT can work. The query that loads the GTT can be different for each run but the data will only be available for a single session and ONLY for the life of that session. So if anything goes wrong and the session terminates the data is gone.
    First thing that comes to mind is to store the result set into a dummy table and then query the table since the core data I get is around 300 rows and then do different group bys.
    That is commonly referred to as a 'REPORT-READY table'. Those are useful when the data needs to be permanent and available to multiple sessions/users. Typically there is a batch process (e.g. package procedure) that periodically refreshes/updates the data during an outage window. Or the table can have a column (e.g. AS_OF) that lets it contain multiple sets of data and the update process leaves existing data alone and creates a new set of data.
    If your core data is around 300 rows you may want to consider a report-ready table and even using it to contain multiple sets of data. Then the reports can be written to query the data using an AS_OF value that rolls up and returns the proper data. You don't need an outage window since older data is always available (but can be deleted when you no longer need it.
    If you only need one set of data you could use a partitioned work table (with only one partition) to gather the new set of data and then an EXCHANGE PARTITION to 'swap' in the new data. That 'exchange' only takes a fraction of a second and avoids an outage window. Once the swap is done any user query will get the new data.

Maybe you are looking for

  • ITunes on Win 7 64 bit says file on locked disk or wrong permissions

    I am using Windows 7 pro 64 bit. I have been using iTunes forever without a problem, Recently, probably after a version update, iTunes opens a small window and says iTunes is on a locked disk or the permissions are wrong. I have read several so-calle

  • Pre-Populate Text Filed Adobe X Pro Form

    All, I appreciate any assistance you can give. I am looking for a way to have text fields pre-populate information after a user selects an item from a dropdown menu. For example: Dropdown menu 1: User selects South Carolina Drop Down menu 2: User sel

  • Tablespace threshold alert

    Hi, I executed the below procedure to implement the tablespace threshold for the tablespace 'TESTING'. My doubt is, once the threshold reaches where will I get the message like the tablespace 'TESTING' has only 51200 KB left. Database:10.2.0.4 OS: so

  • Tablespace having less than 5 Gb Fress space script

    Hi DBAs, Can anybody provide me the sql script to monitor tablespaces having less than 5 GB Freespace? And also a script to monitor segments which are having less than 5 GB freespace? Both of them are in autoextendable tablespaces. DB=10.2.0.4 Thank

  • Best software for converting VHS to digital format?

    I watched my wedding video from 20 years ago the other day. Then I thought I should put this into a digital format so I've been looking around at Apple forum and other places for suggestions. It seems the best/easiest so far is the Roxio Easy VHS to