dynamic update with vars query

Hello

I have a dynamically generated, with x input fields, generated from x days
so, if I have 3 days and each day contains 3 fields, I appoint dynamic my fields

field1_1
field1_2
field1_3

field2_1
field2_2
field2_3

and so on...

in my result page, I can capture these areas by

< cfloop 1 to 3 of the index I have >
< name cfparam = field1_ #i # >
< / cfloop >

but then I don't know how to upgrade my request, because I would have to use this syntax, which is not correct...

< cfloop 1 to 3 of the index I have >
UPDATE... 1(1)(a) field SET = field1_ # i # #.
< / cfloop >

is there another way?


TNX for all help!

Scoring table to use. Assume you are using POST:

UPDATE... 1(1)(a) field SET = form [' field1_ #i # "]

Tags: ColdFusion

Similar Questions

  • Dynamic problem with lookup-query for the purpose of resource request

    Hi all
    I need to set up several IOM user exchange mailboxes, I can set up AD account and account of the mailbox without any problem, but only for the first ad and Exchange account. For the second and third, etc. I get the error: "Invalid login name" during Exchange of account provisioning. I discovered that this problem exists with Exchange Connector - it is not able to collect correct GUID. So in my xml Dataset I use dynamic query Lookup to select manually correct Alias, the login name and GUID. The query for the GUID is the sequel (I cloned RO for AD and Exchnage):

    AttributeReference available-in-bulk = "true" length = "32" widget = 'search query' type = 'String' attr-ref = "Object GUID" name = "Object GUID" >
    * < lookupQuery search-query = "select distinct UD_KFUSER_OBJECTGUID GUID, ud_KFUSER_uid like UD_KFUSER UD_KFUSER, orc orc Login, sta sta where UD_KFUSER.orc_key = orc.orc_key and orc.usr_key = ' $Form data." Take ' and UD_KFUSER. "UD_KFUSER_AD = 27 and orc.orc_status = STA.sta_status AND STA.sta_bucket! = 'Cancelled'" display-field = "GUID" save-field = "Object GUID" / > *.
    * < / AttributeReference > *.


    My questions are:

    1. I have to type * to run the query in the user interface, without * I got error:

    + < 17 February 2012 11:12:22 THIS > < error > < oracle.adfinternal.view.faces.config.ric +.
    h.RegistrationConfigurator > < BEA-000000 > < ADF_FACES - 60096:Server Exception durin
    PPR, #10 g
    oracle.iam.platform.canonic.base.NoteException: an error occurred during executin
    g the search query.
    to oracle.iam.platform.canonic.agentry.GenericEntityLookupActor.perform)
    GenericEntityLookupActor.java:337)
    Is this right?

    2. when I got correct values (from the search query) - they are missing on the details of the application and form of RO - what Miss me?

    I use OIM 11.1.1.5, in my xml dataset I use correct attr-Ref (labels), when I type the values manually, they are propagated to form RO and Exchange mailbox is created.
    Best
    MP

    I not had no problem when writing search query.
    This works very well for me.
    The request will be filled for the field, so why choose *?
    I used as

  • Dynamic update with iPad App

    I am developing an app for the iPad, the client has several videos and brochures that change, updated each month and is to be available for their sales through this app...

    I searched the internet looking for some information on how this can be done, I thought as a wheel/scroll bar with text and links obtained from a piece of xml located on a remote server that I added new videos/brochures I can add the links in a document xml, then its sales force would have immediate access to these links.

    Calendars of InDesign can also take data google ics calendar to fill the dates?

    Thanks for any help/direction.

    Kent

    DPS Professional or Enterprise edition will do what you want. For more information on DPS, please visit http://www.adobe.com/go/dps.

    Neil

  • Is it possible to update a query with another query?

    I'm trying to update a query with another query (see the attachment of the code). Here is my setup: I have a table in an Access database in which I enter a string in a form and an update. This string is a single record in another table in the same data source. The first table has one record to provide the second, which has many and will have more. Basically what I was asking is: is this a valid thing to do in coldfusion? If this isn't the case, please help with a method to alter. I'm still new to coldfusion.

    The overall effect, I'm going to do is to display a folder as a profile of truck recommended on the website: www.truckerstoystore.net. Currently, I get an error when I try to view the page with the current configuration of the query.

    Check out this page to see the error: www.truckerstoystore.net/currentTOW2.cfm

    Assistance in this matter is greatly appreciated.
    ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------

    The owner of the column has a data type of character and thus the value must be in single quotes

    WHERE owner = "#Owner #

    But as your learning, I suggest using cfqueryparam

    WHERE owner =

    Ken

  • My Iphone will not update with itunes.

    My Iphone will not update with itunes. He hit a certain part and it's downloading but everything freezes, I can't it never ends downlaoding my photos or anthing. Also, my itunes does not connect to the itunes store.

    Original title: program compatibility Application Applications App Apps game games Legacy Crash crashes Hang hangs

    Hello

    Thanks for posting your query in the Microsoft Community Forums.

    The question you posted would be better suited in the ITunes Forums. I would refer you to the ITunes support link and check if it helps.

    ITunes - Support
    http://www.Apple.com/support/iTunes/

    See also: communities of Apple
    https://discussions.Apple.com/index.jspa

    Back to us for any problem related to the Windows operating system. We will be happy to help you. We at Microsoft try to provide our customers the best experience.

  • Dynamic region with several task page fragment flow isn't refreshing VO

    JDeveloper version is 12.1.3 and Weblogic Server is 12.1.3.

    We have a dynamic region with several task page fragment flow.  We have created a menu that will open on the workflow task in the dynamic region. Before defining the workflow id in the bean, we execute query on the original Version after setting the bind variable. When we click on the menu is open the flow of relevant tasks in the region and showing the Original data table.

    But when we open the same request again to a different browser session, it shows all the data in the original Version when the user clicks on the relevant menu item...

    I have attached the code used to navigate to the different workflow tasks written in the bean from the back of the home page.

    We have no idea why anyone what happens, if it's a server problem or a code issue. Because unless and until we open the target application in a new browser it works fine.

    We tried and deployed on a remote server as well, but it gives the same question...

    Would be really grateful for the help...

    The user, the code you posted has some serious problems. Never, I repeat never store a reference to an application module in a static variable in a bean. That is why you see only data once. After that, the second session reuses the application module from the first to the configuration data, but to display data it uses a module different application.

    The way you try to configuration data is too bad. You must pass the parameters to the workflow and init data in the default action of the workflow instead of doing before installing the new workflow id. A workflow is a unit of work that is kind of a black box. You may not assume that the stuff you do outside of this black box can be seen inside the box. This is only true if the workflow share the same control of data as it's parent (share of data control).

    I suggest you read some documents on the workflow and how they work. A good start is to look at this video https://www.youtube.com/watch?v=A3CmDhWHaG0

    or work through this tutorial 12 c (12.1.3) Oracle JDeveloper tutorials - working with bounded task flows, regions and routers

    Timo

  • Question of dynamic textfield with some specific device fonts

    Hello!

    I am facing a serious problem here, and any testing I try to do, led to no solution...

    I have a few dynamic textfield with assigned "Arial Unicode MS" font in Flash CC2014, and "use device fonts" for anti-aliasing settings.

    These textfield are powered by xml.

    Everything works fine in Flash CS6, BUT when I publish a SWF with CC2014, the textfields do not show the "Arial Unicode MS", but something more resembling a police 'Times '. Nothing like "Arial" anyway... When I load the fla in CS6, no problem. Even if I re-record the fla with CS6, as soon as it is loaded in the CS2014, the published SWF shows the same 'Times' of fonts.

    I know that some of you have already faced this problem, but I have yet to see any solution.

    Is this a bug in CC2014? Is there a solution? (except the CS6 FLAS to edition )

    Thanks in advance for your help...

    Hello

    There seems to be a difference in the name of the font family specified via the Panel properties and the police that gets applied on the field of text in Swf (for specific fonts only). This difference is causing police to the rescue of a default one instead of use the one specified. We will connect this as a bug and study in their own country.

    In the meantime, you can add this feature in your fla files to manually specify the correct font family name through Actionscript.

    import flash.text.TextFormat;

    import flash.text.TextField;

    fixFont (txtLabel, "ABCD 1234! @# $") //txtLabel is the instance name of text on stage"

    function fixFont (myTextInstance:TextField, myText:String) {}

    myTextInstance.text = myText;

    var tf:TextFormat = myTextInstance.getTextFormat ();

    TF.font = "Arial Unicode MS";

    myTextInstance.setTextFormat (tf);

    }

    I hope it works for you.

    -Mabrouk

  • Dynamically update a numeric field as the sum of the values of page element.

    Hello

    I am updating a numeric field on a page of the apex by summing the values of several components of the page. I have tried to follow this tutorial http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm, especially the part "create a Set value dynamic Action with the help of PL/SQL'.

    In the example of the tutorial, they return a value of page element P3_SAL multiplied by a multiplier determined by the case of another page. What I want to do is much more simple that I just want to add multiple values page element and then display them in a numeric field at the bottom of the page.

    so the code I tried to use based on the tutorial is in the tab: Home > Application Builder > Application 103 > Page 3 > Dynamic Action change > create / edit Action

    Set type: PL/SQL function body

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    That is to say.

    BEGIN
    return: P3_ITEM1 + 1000;
    END;

    Any help would be appreciated.

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    In your code, it lacks the ":" for articles P3_ITEM2 and P3_ITEM3.
    Try this:

    BEGIN
    return :P3_ITEM1+:P3_ITEM2+:P3_ITEM3;
    END;
    
  • Impossible to update with ESXUPDATE

    I get this error everytime I try to apply an update on my ESX 4 server...

    #esxupdate - update of ESX bundle - 4.0.0 - update01a.zip

    ESX - 4.0.0 - update01a.zip

    Encountered error FileIOError:

    The error data are:

    Filename - no

    Message - IO error (28) on the file: no space is available on the device

    Errno - 10

    Description - unable to create, write, or read a file as expected.

    FYI, the update is located in/var/updates

    Help is appreciated.

    Updated with:

    By using the command 'vdf h' to see how much free space is available on the hypervisor.

    #vdf h

    File system

    Size

    Used

    Avil

    % Of use

    Mounted on

    / dev/sdc5

    4.9 G

    4.9 G

    0

    100%

    /

    / dev/sdb1

    1.1 G

    75 M

    952 M

    8%

    / Boot

    / dev/sdb2

    2.0 G

    52 M

    1.8 G

    3%

    / var/log

    device/vmfs /.

    836G

    0

    836G

    1 D

    VMFS/devices

    / vmfs/volumes/4AE4...

    835G

    286G

    548G

    34%

    / vmfs/volumes/Storage1

    Post edited by: adminatater

    Yep, / is full.  delete all files/var/spool/esxupdate and/var/core, search for other files taking up lots of space.  check/root and /vmimages for the .iso files that may have been downloaded, too.

    Oops, ESX4.  Check/var/cache/esxupdate for update files previously cached, iirc.

    Post edited by: danm66

  • Update with INNER JOIN

    Hello

    My update with the inner join does not seem to work.

    UPDATE RECAP R SET R.FLAVOR = (SELECT FN. FLAVOR_NDC FN FLAVOR, REPLACE CAP R WHERE R.NDC11 = FN. NDC11)

    When I write the query above, the inner circle question (SELECT FN. FLAVOR_NDC FN FLAVOR, REPLACE CAP R WHERE R.NDC11 = FN. NDC11) returns multiple lines, and it's a new syntax for me (as I was Teradata and SQL server).

    Can you please how this request can be written to make it work?

    I get the error message below

    SQL error: ORA-01427: einreihig subquery returns multiple rows
    01427 00000 - "einreihig subquery returns several lines.

    1. fix your code:

    UPDATE RECAP R SET R.FLAVOR = (SELECT FN.FLAVOR FROM FLAVOR_NDC FN WHERE R.NDC11 = FN.NDC11)
    

    2. you can use the fusion

    merge into RECAP R
    using FLAVOR_NDC FN
    on(R.NDC11 = FN.NDC11)
    when matched then
         update
         set R.FLAVOR = FN.FLAVOR
    

    Kind regards
    Malakshinov Sayan

  • By comparing a list with a query result

    I can just be really tired, but I do just that to me.  What I'm trying to accomplish is a query of exit and as she came out, check a list to see if a value exists, and if so, change the class of a < li >

    I have two queries and defining a list of one:

    < cfquery name = "rsTags" datasource = "cfsfwer" >

    SELECT tags.tagName, tags.tagsID

    Tags, blogTagLink

    WHERE blogTagLink.blogID = < cfqueryparam value = "" #SESSION.blogID # "cfsqltype ="cf_sql_numeric">"

    AND tags.tagsID = blogTagLink.tagID

    < / cfquery >

    < cfset selectedTags = ValueList (rsTags.tagsID) >

    < cfquery name = "rsAllTags" datasource = "cfsfwer" >

    SELECT *.

    Tags

    ORDER BY tags.tagName

    < / cfquery >

    So far, it works very well.  The output of #selectedTags # is correct.  Now I want to output #rsAllTags # and check if the record is ALSO in the #selectedTags # list and if this is the case, replace the class on the output like this

    < ul >

    < cfoutput query = "rsAllTags" >

    < cfset temp = ListFind (selectedTags, #rsAllTags.tagsID #) >

    < cfif temp EQ 0 >

    < class li = "tagnotselected" "> < a > #rsAllTags.tagName # < /a > < /li >"

    < cfelse >

    < class li = "tagselected" "> < a > #rsAllTags.tagName # < /a > < /li >"

    < / cfif >

    < / cfoutput >

    < /ul >

    It does not, and it is related to the variable #rsAllTags.tagsID #.  If I use a static value for this, it works fine.  Obviously, I need a dynamic value to deal with the query of exit.

    Any help would be appreciated.

    If your db is supported, this type of query will give you exactly what you want and make your exit.

    Select tagid, tagname,.

    -case when x.tag_id is not null then 'tagselected' 'tagnotselected' other end included

    tags left join)

    Select tagid

    of tagblocklink

    where tagid is

    ) x on tags.tagid = x.tagid

    order by tagname

    The output should require no if/else logic

  • Dynamic report with LOV SelectLists

    I like to create a dynamic report with Select-Lists(LOV based).

    My Source (according to PL/SQL returning SQL query) region:
    declare
      q varchar2(4000);
    begin
     
      q := 'SELECT R_ID, R_TSO_NO';
    
      For i in (SELECT * FROM USER_TAB_COLUMNS
      WHERE table_name = 'TAB_REPORTS'
      AND column_name like '2%')
      loop
        q := q || ', ';
        q := q || 'HTMLDB_ITEM.SELECT_LIST(1, ';
        q := q || i.column_name;
        q := q || ', ';
        q := q || chr(39);
        q := q || 'LOV_QER';
        q := q || chr(39);
        q := q || ', null, ';
        q := q || chr(39);
        q := q || 'Y';
        q := q || chr(39);
        q := q || ') "';
        q := q || i.column_name;
        q := q || '"';
      end loop;
       
      q := q || ' FROM TAB_REPORTS ';
    
      return q;
    
    END;
    This is the return value, which seems to be OK:
    SELECT R_ID, 
    R_TSO_NO, 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_05, 'LOV_QER', null, 'Y') "2008_05", 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_03, 'LOV_QER', null, 'Y') "2008_03", 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_08, 'LOV_QER', null, 'Y') "2008_08", 
    HTMLDB_ITEM.SELECT_LIST(1, 2008_11, 'LOV_QER', null, 'Y') "2008_11", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_02, 'LOV_QER', null, 'Y') "2009_02", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_05, 'LOV_QER', null, 'Y') "2009_05", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_08, 'LOV_QER', null, 'Y') "2009_08", 
    HTMLDB_ITEM.SELECT_LIST(1, 2009_11, 'LOV_QER', null, 'Y') "2009_11", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_02, 'LOV_QER', null, 'Y') "2010_02", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_05, 'LOV_QER', null, 'Y') "2010_05", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_08, 'LOV_QER', null, 'Y') "2010_08", 
    HTMLDB_ITEM.SELECT_LIST(1, 2010_11, 'LOV_QER', null, 'Y') "2010_11" 
    FROM TAB_REPORTS
    And this is my error msg, I do not understand:

    * Failed to parse the SQL query:
    ORA-00911: invalid character *.

    Where is this invalid character, please?

    THX 4 help,
    Chris

    Hello

    As part of HTMLDB_ITEM. This is a parameter of function - it should be a tank. In addition, if you use a recent version of the APEX, you should use the synonym APEX_ITEM reference HTMLDB_ITEM.

    Here is the statement of HTMLDB_ITEM parameter. SELECT_LIST...

        p_idx         in number,
        p_value       in varchar2 default null,
        p_list_values in varchar2 default null,
        p_attributes  in varchar2 default null,
        p_show_null   in varchar2 default 'NO',
        p_null_value  in varchar2 default '%null%',
        p_null_text   in varchar2 default '%',
        p_item_id     in varchar2 default null,
        p_item_label  in varchar2 default null,
        p_show_extra  in varchar2 default 'YES'
    

    You will see that it is a VARCHAR2 parameter.

    See you soon

    Ben

  • How to improve an update with a correlated subquery

    Hi all

    Could someone please some help or advice?
    I try to do the next update with correlated subquery to get all records from updatedl in the table PSI (700 k records)
    update /*+ parallel(psi 4) */ psi psi
    set PREMIERE_VENTE =
           (select min(eve.dateve) 
            from eve, evp 
            where eve.codsoc = evp.codsoc and eve.achvte = evp.achvte and eve.typeve = evp.typeve and eve.numeve = evp.numeve 
            and eve.codsoc = psi.num_mag and eve.achvte = 'V' and eve.typeve in('TIC','FAV') 
            and eve.dateve between '20090101' and '20091231' and evp.codpro = psi.ref_pro)
    Of course, it takes a long time to do the update. I tried to do in num_mag (I have 73 distinct values, and for each distinct value, I have about 9 k lines)
    and it took about 8 minutes, updating the 9000 lines. OK, that's a total of nearly 10 hours. But I need to run 15 similar updates and it's a lot of time.
    Not only that, but during the night, that we have a lot of running batches, so I am not able to run for 24/24.

    Here is the plan of the explain command:
    PLAN_TABLE_OUTPUT                                                                                                                                                                                                                                         
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 1857481200                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                              
    -----------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                     
    | Id  | Operation                               | Name         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |                                                                                                     
    -----------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                     
    |   0 | UPDATE STATEMENT                        |              |   704K|    15M|   583   (5)| 00:00:02 |       |       |        |      |            |                                                                                                     
    |   1 |  UPDATE                                 | PSI          |       |       |            |          |       |       |        |      |            |                                                                                                     
    |   2 |   PX COORDINATOR                        |              |       |       |            |          |       |       |        |      |            |                                                                                                     
    |   3 |    PX SEND QC (RANDOM)                  | :TQ10000     |   704K|    15M|   583   (5)| 00:00:02 |       |       |  Q1,00 | P->S | QC (RAND)  |                                                                                                     
    |   4 |     PX BLOCK ITERATOR                   |              |   704K|    15M|   583   (5)| 00:00:02 |       |       |  Q1,00 | PCWC |            |                                                                                                     
    |   5 |      TABLE ACCESS FULL                  | PSI          |   704K|    15M|   583   (5)| 00:00:02 |       |       |  Q1,00 | PCWP |            |                                                                                                     
    |   6 |   SORT AGGREGATE                        |              |     1 |    50 |            |          |       |       |        |      |            |                                                                                                     
    |*  7 |    HASH JOIN                            |              |     1 |    50 |    34   (3)| 00:00:01 |       |       |        |      |            |                                                                                                     
    |   8 |     PARTITION RANGE SINGLE              |              |    22 |   550 |    23   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    |   9 |      PARTITION LIST SINGLE              |              |    22 |   550 |    23   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    |  10 |       INLIST ITERATOR                   |              |       |       |            |          |       |       |        |      |            |                                                                                                     
    |  11 |        TABLE ACCESS BY LOCAL INDEX ROWID| EVP          |    22 |   550 |    23   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    |* 12 |         INDEX RANGE SCAN                | PPP_EVP_IDX1 |     1 |       |     5   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    |  13 |     PARTITION RANGE SINGLE              |              |    57 |  1425 |    10   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    |  14 |      PARTITION LIST SINGLE              |              |    57 |  1425 |    10   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    |  15 |       INLIST ITERATOR                   |              |       |       |            |          |       |       |        |      |            |                                                                                                     
    |  16 |        TABLE ACCESS BY LOCAL INDEX ROWID| EVE          |    57 |  1425 |    10   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    |* 17 |         INDEX RANGE SCAN                | EVE_M_IDX1   |     1 |       |     4   (0)| 00:00:01 |   KEY |   KEY |        |      |            |                                                                                                     
    -----------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                     
                                                                                                                                                                                                                                                              
    Query Block Name / Object Alias (identified by operation id):                                                                                                                                                                                             
    -------------------------------------------------------------                                                                                                                                                                                             
                                                                                                                                                                                                                                                              
       1 - UPD$1                                                                                                                                                                                                                                              
       5 - UPD$1 / PSI@UPD$1                                                                                                                                                                                                                                  
       6 - SEL$1                                                                                                                                                                                                                                              
      11 - SEL$1 / EVP@SEL$1                                                                                                                                                                                                                                  
      12 - SEL$1 / EVP@SEL$1                                                                                                                                                                                                                                  
      16 - SEL$1 / EVE@SEL$1                                                                                                                                                                                                                                  
      17 - SEL$1 / EVE@SEL$1                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                              
    Predicate Information (identified by operation id):                                                                                                                                                                                                       
    ---------------------------------------------------                                                                                                                                                                                                       
                                                                                                                                                                                                                                                              
       7 - access("EVE"."CODSOC"="EVP"."CODSOC" AND "EVE"."ACHVTE"="EVP"."ACHVTE" AND "EVE"."TYPEVE"="EVP"."TYPEVE" AND                                                                                                                                       
                  "EVE"."NUMEVE"="EVP"."NUMEVE")                                                                                                                                                                                                              
      12 - access("EVP"."CODSOC"=TO_NUMBER(:B1) AND "EVP"."ACHVTE"='V' AND ("EVP"."TYPEVE"='FAV' OR "EVP"."TYPEVE"='TIC') AND "EVP"."CODPRO"=:B2)                                                                                                             
      17 - access("EVE"."CODSOC"=TO_NUMBER(:B1) AND "EVE"."ACHVTE"='V' AND ("EVE"."TYPEVE"='FAV' OR "EVE"."TYPEVE"='TIC') AND                                                                                                                                 
                  "EVE"."DATEVE">='20090101' AND "EVE"."DATEVE"<='20091231')                                                                                                                                                                                  
           filter(SUBSTR("EVE"."DATEVE",1,6)>='200901' AND SUBSTR("EVE"."DATEVE",1,6)<='200912')                                                                                                                                                              
                                                                                                                                                                                                                                                              
    Column Projection Information (identified by operation id):                                                                                                                                                                                               
    -----------------------------------------------------------                                                                                                                                                                                               
                                                                                                                                                                                                                                                              
       2 - (upd=4; cmp=2,3) "SYS_ALIAS_2".ROWID[ROWID,10], "PSI"."NUM_MAG"[VARCHAR2,12], "PSI"."REF_PRO"[VARCHAR2,16],                                                                                                                                        
           "PREMIERE_VENTE"[CHARACTER,8]                                                                                                                                                                                                                      
       3 - (#keys=0) "SYS_ALIAS_2".ROWID[ROWID,10], "PSI"."NUM_MAG"[VARCHAR2,12], "PSI"."REF_PRO"[VARCHAR2,16], "PREMIERE_VENTE"[CHARACTER,8]                                                                                                                 
       4 - "SYS_ALIAS_2".ROWID[ROWID,10], "PSI"."NUM_MAG"[VARCHAR2,12], "PSI"."REF_PRO"[VARCHAR2,16], "PREMIERE_VENTE"[CHARACTER,8]                                                                                                                           
       5 - "SYS_ALIAS_2".ROWID[ROWID,10], "PSI"."NUM_MAG"[VARCHAR2,12], "PSI"."REF_PRO"[VARCHAR2,16], "PREMIERE_VENTE"[CHARACTER,8]                                                                                                                           
       6 - (#keys=0) MIN("EVE"."DATEVE")[8]                                                                                                                                                                                                                   
       7 - (#keys=4) "EVP"."CODSOC"[NUMBER,22], "EVE"."CODSOC"[NUMBER,22], "EVP"."ACHVTE"[VARCHAR2,1], "EVE"."ACHVTE"[VARCHAR2,1],                                                                                                                            
           "EVP"."TYPEVE"[VARCHAR2,3], "EVE"."TYPEVE"[VARCHAR2,3], "EVP"."NUMEVE"[NUMBER,22], "EVE"."NUMEVE"[NUMBER,22], "EVP".ROWID[ROWID,10],                                                                                                               
           "EVP"."CODPRO"[VARCHAR2,16], "EVE".ROWID[ROWID,10], "EVE"."DATEVE"[VARCHAR2,8]                                                                                                                                                                     
       8 - "EVP".ROWID[ROWID,10], "EVP"."ACHVTE"[VARCHAR2,1], "EVP"."TYPEVE"[VARCHAR2,3], "EVP"."NUMEVE"[NUMBER,22],                                                                                                                                          
           "EVP"."CODPRO"[VARCHAR2,16], "EVP"."CODSOC"[NUMBER,22]                                                                                                                                                                                             
       9 - "EVP".ROWID[ROWID,10], "EVP"."ACHVTE"[VARCHAR2,1], "EVP"."TYPEVE"[VARCHAR2,3], "EVP"."NUMEVE"[NUMBER,22],                                                                                                                                          
           "EVP"."CODPRO"[VARCHAR2,16], "EVP"."CODSOC"[NUMBER,22]                                                                                                                                                                                             
      10 - "EVP".ROWID[ROWID,10], "EVP"."ACHVTE"[VARCHAR2,1], "EVP"."TYPEVE"[VARCHAR2,3], "EVP"."NUMEVE"[NUMBER,22],                                                                                                                                          
           "EVP"."CODPRO"[VARCHAR2,16], "EVP"."CODSOC"[NUMBER,22]                                                                                                                                                                                             
      11 - "EVP".ROWID[ROWID,10], "EVP"."ACHVTE"[VARCHAR2,1], "EVP"."TYPEVE"[VARCHAR2,3], "EVP"."NUMEVE"[NUMBER,22],                                                                                                                                          
           "EVP"."CODPRO"[VARCHAR2,16], "EVP"."CODSOC"[NUMBER,22]                                                                                                                                                                                             
      12 - "EVP".ROWID[ROWID,10], "EVP"."CODSOC"[NUMBER,22], "EVP"."ACHVTE"[VARCHAR2,1], "EVP"."TYPEVE"[VARCHAR2,3], "EVP"."CODPRO"[VARCHAR2,16]                                                                                                              
      13 - "EVE".ROWID[ROWID,10], "EVE"."ACHVTE"[VARCHAR2,1], "EVE"."TYPEVE"[VARCHAR2,3], "EVE"."NUMEVE"[NUMBER,22], "EVE"."DATEVE"[VARCHAR2,8],                                                                                                              
           "EVE"."CODSOC"[NUMBER,22]                                                                                                                                                                                                                          
      14 - "EVE".ROWID[ROWID,10], "EVE"."ACHVTE"[VARCHAR2,1], "EVE"."TYPEVE"[VARCHAR2,3], "EVE"."NUMEVE"[NUMBER,22], "EVE"."DATEVE"[VARCHAR2,8],                                                                                                              
           "EVE"."CODSOC"[NUMBER,22]                                                                                                                                                                                                                          
      15 - "EVE".ROWID[ROWID,10], "EVE"."ACHVTE"[VARCHAR2,1], "EVE"."TYPEVE"[VARCHAR2,3], "EVE"."NUMEVE"[NUMBER,22], "EVE"."DATEVE"[VARCHAR2,8],                                                                                                              
           "EVE"."CODSOC"[NUMBER,22]                                                                                                                                                                                                                          
      16 - "EVE".ROWID[ROWID,10], "EVE"."ACHVTE"[VARCHAR2,1], "EVE"."TYPEVE"[VARCHAR2,3], "EVE"."NUMEVE"[NUMBER,22], "EVE"."DATEVE"[VARCHAR2,8],                                                                                                              
           "EVE"."CODSOC"[NUMBER,22]                                                                                                                                                                                                                          
      17 - "EVE".ROWID[ROWID,10], "EVE"."CODSOC"[NUMBER,22], "EVE"."ACHVTE"[VARCHAR2,1], "EVE"."TYPEVE"[VARCHAR2,3], "EVE"."DATEVE"[VARCHAR2,8]                                                                                                               
    Oracle version is:
     Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit 
    ...
    And my Optimizer Parms are:

    SQL > show parameter optimizer
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.3
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      FIRST_ROWS_100
    optimizer_secure_view_merging        boolean     TRUE
    SQL>
    SQL> show parameter cursor_sharing
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    cursor_sharing                       string      EXACT
    SQL> column sname format a20
    SQL> column pname format a20
    SQL> column pval2 format a20
    SQL>     select
      2  sname,pname,pval1,pval2
      3  from sys.aux_stats$;
    
    SNAME                PNAME                     PVAL1 PVAL2
    -------------------- -------------------- ---------- --------------------
    SYSSTATS_INFO        STATUS                          COMPLETED
    SYSSTATS_INFO        DSTART                          01-14-2010 21:05
    SYSSTATS_INFO        DSTOP                           01-14-2010 21:05
    SYSSTATS_INFO        FLAGS                         1
    SYSSTATS_MAIN        CPUSPEEDNW             1247,559
    SYSSTATS_MAIN        IOSEEKTIM                 5,053
    SYSSTATS_MAIN        IOTFRSPEED            45469,627
    SYSSTATS_MAIN        SREADTIM                  2,583
    SYSSTATS_MAIN        MREADTIM                  1,851
    SYSSTATS_MAIN        CPUSPEED                   1329
    SYSSTATS_MAIN        MBRC                         14
    
    SNAME                PNAME                     PVAL1 PVAL2
    -------------------- -------------------- ---------- --------------------
    SYSSTATS_MAIN        MAXTHR                174532608
    SYSSTATS_MAIN        SLAVETHR                  48128
    If you think I missed something important in this post sample made me know, please.

    Kind regards
    Marek

    To update all the records in the table to 700K, one of the fastest ways would be to recreate a new table:
    CREATE TABLE PSI_NEW AS SELECT psi.*, min (eve.dateve)
    FROM Eve, lb/po2, evp
    where
    Eve.codsoc = evp.codsoc and eve.achvte = evp.achvte and eve.typeve = evp.typeve and eve.numeve = evp.numeve
    and eve.codsoc = psi.num_mag and eve.achvte = 'V' and eve.typeve in('TIC','FAV')
    and eve.dateve ' 20090101 ', ' 20091231' and evp.codpro = psi.ref_pro

    Another technique that can work well is using the merge command:
    MERGE INTO PSI has (select min (eve.dateve) as min_dat, evp.codpro as codpro help
    Since the day before, evp
    where eve.codsoc = evp.codsoc and eve.achvte = evp.achvte and eve.typeve = evp.typeve and eve.numeve = evp.numeve
    and eve.codsoc = psi.num_mag and eve.achvte = 'V' and eve.typeve in('TIC','FAV')
    and eve.dateve between '20090101' and '20091231'
    GROUP BY evp.codpro) b ON (a.ref_pro = b.codpro)
    WHEN MATCHED, THEN update SET PREMIERE_VENTE = B.min_dat

    The advantage of the two modes is that you don't have any subquery launched K 700 times.

    Published by: B.Guillaumin on January 15, 2010 18:00

    Published by: B.Guillaumin on January 15, 2010 18:27

  • Feild dynamic text with dynamic ScrollBar

    I have a Feild dynamic text with a dynamic scroll bar.
    It loads a file of plain ASCI text with html formatting.
    but I still can't manage to get the text to format.

    The biggest problem with the format is a large space between paragraphs.
    I don't know why, but I think that the framework must need a var to render as html.
    Can anyone help please?

    I don't understand what you're asking. But if your textfield displays extra space between paragraphs using:

    var my_lv:LoadVars = new LoadVars();
    my_lv. Our = {function (src:String)}
    If (src! = undefined) {}
    myTxtFeild.text = src.split("\n\r").join("\r").split("\r\n").join("\r");

    } else {}
    myTxtFile.text = "Error loading text.";
    }
    };
    my_lv. Load ("CadnetPage1_html.txt");

  • SQL - update with joins

    My database contains several tables in a parent-child relationship (5 levels). Tables for children contain unique (foreign key) of the parents. I need to update a field in the table below level with a hardcoded value (for example: the value d.field3 = 103), but only on the rows that match certain general criteria. Criteria are set at different levels of the hierarchy. I tried several approaches, but in the end, I still get the same error:

    ORA-01779: cannot modify a column that is mapped to a table not preserved key

    So far, I tried the following:
    -create a view based on all joins (where b.fk = a.id etc.) and then write my update with the "filtering" query where clauses (for example: where b.field1 = 'abc' and c.field2 = 123... etc)
    -create a query of update (without creating a preliminary view) which contains in the 'where' clause all joins and clauses of filtering

    I am trying to adapt some scripts from SQL Server to Oracle, but nothing seems to work for this one. Your help is greatly appreciated.

    Thank you
    Alberto

    Something like:

    update CM_CRITERION_LINE_MASTER set function_id = 103
    where criterion_master_id in (
      SELECT CM_CRITERION_MASTER.criterion_master_id
      from CM_CRITERION_MASTER, CM_STATEMENT, CM_CRITERION, CM_RULE, CM_CASE
      where CM_CRITERION_MASTER.criterion_master_id = CM_CRITERION.criterion_master_id
        and CM_CRITERION.statement_id = CM_STATEMENT.statement_id
        and CM_STATEMENT.rule_id = CM_RULE.rule_id
        and CM_RULE.case_id=CM_CASE.case_id
        and CM_CASE.case_category_id=2
        and CM_CASE.case_id > 799999
        and CM_RULE.rule_category_id 9
        and CM_RULE.task_id in (102,108,112,113,114,123,116)
    )
      and CM_CRITERION_LINE_MASTER.function_id=11
    

    Of course, you need to test.

    Time to understand that SQL Server and Oracle, as well as other DBMS each differ :)

    Gints Plivna
    http://www.gplivna.EU

Maybe you are looking for

  • Excel crashes when I try to select another tab in my workbook. Help! Please

    Once I open an existing file and try to access another tab in this workbook, immediately I get this error... any help in would be great.

  • Venue 8 pro-active stylets

    I recently bought the active stylus for Dell to use with my Tablet coming 8 Pro.  Unfortunately, the only instructions that came with it were how to install the battery.  I realized that a tap with the pen is the same as a left click with a mouse.  H

  • error 0X800f0214

    During installation (a pos88III printer spert) driver, an error message appears saying that the action could not be completed - error 0X800f0214. The printer is shared and my firewall is set to off. I have absolutely no idea on what to do and would l

  • Noise level of the SRW2008MP?

    Hello! Does anyone have information on the level of noise produced by the SRW2008MP? In addition this switch is quieter when idle or rather the noise level will always be the same, no matter the temperature of internal components? Thank you very much

  • My note in my Reader app went

    My note that I added on my PDF file is missing, and the PDF opens with the Reader app How can I do to get my notes?