help on concat

Hello
I have a table with two column col1, col2, which is of varchar2 (4000 TANK)
I want to create a new col3 CLOB data type column and add col1 and col2 into that.

I use

update of tab1 set col3 = col1 | col2; - > just a sample...

It gives me the error that there is a limit of 4,000 TANK for concat.

Does anyone have a solution?

Help, please.

Thank you
Roy

Hello

Something like this:

SQL> create table tab1 as
  2  select lpad('A', 4000, 'A') col1,
  3         lpad('B', 4000, 'B') col2
  4    from dual;

Table created
SQL> alter table tab1 add (col3 clob);

Table altered
SQL> update tab1 set col3 = to_clob(col1) || to_clob(col2);

1 row updated
SQL> commit;

Commit complete
SQL> select length(col3) from tab1;

LENGTH(COL3)
------------
        8000

Tags: Database

Similar Questions

  • Function max coupled with string concat... Please help...

    Dear all,

    I don't have to solve a query which requirements is below:

    Master data in the table looks like this:

    SEQ. NO Last_updated_date PCode

    1 AA February 1, 2008

    1 Ab January 2, 2009

    1 Ac January 3, 2009


    2 AA January 5, 2009

    2 AD December 31, 2008

    2 AF October 31, 2008


    3 AK January 1, 2009

    3 GH January 2, 2009

    3 AA January 3, 2009

    Now I need the output as:

    I need timestamp on each seqence max not (I mean groupby) (I'm really easy to find it), but it should show all pcode concated while displaying the result...

    Okay... the underside is light out put.. :

    for example in for seq 1 number one... Max timestamp is 1 February 2008 with pcode AA... so it should display as

    Seqno Pcode max (timestamp)
    ------- -------------- ----------------------

    1 AAABAC February 1, 2008

    (logical, it's she should select recording max (timestamp) and concat all the all the other pcode (only) to existing pcode eventough their timestamp is not max)

    like this for other groups of the sequence...

    Help, please... is it possible in a sqlquery to include this logic...

    Thanks for help
    ASP.

    Published by: Onenessboy on February 24, 2009 03:00

    Hello

    There is no need to hard code, replace the t table in the sub query with your table.

    Select seq_no,replace(max(pcode),'/','') pcode,min(last_updated_date) timestamp
    
    from 
    
    (Select seq_no,sys_connect_by_path(pcode,'/') pcode ,last_updated_date
    
    from t
    
    connect by prior seq_no = seq_no 
    
     and 
    
    prior last_updated_date > last_updated_date)
    
    group by seq_no
    
    /
    

    Kind regards
    Vinod

  • How concat? Help, please

    Hi all

    I want to display enames on same line for deptno 10. Help, please

    SELECT ENAME FROM EMP WHERE DEPTNO = 10;


    Output voltage

    ENAME
    --------------------------
    CLARK, KING, MILLER

    Hello

    Use this...

    COLUMN employees FORMAT A50
    
    SELECT deptno, wm_concat(ename) AS employees
    FROM   emp where deptno=10
    GROUP BY deptno;
    
        DEPTNO EMPLOYEES
    ---------- --------------------------------------------------
            10 CLARK,KING,MILLER
    
     
    

    -------------------------------------------------------------------------------------
    There are many examples available here

    http://www.Oracle-base.com/articles/Misc/StringAggregationTechniques.php

    Thank you
    Prakash P

    Published by: prakash on October 6, 2011 22:03

  • Help derived formula

    Hi team,

    I need assistance with forms (2).

    My first ask is the following:

    I have two hierarchies with some of the same members each according to level (I inserted the).

    I need the formula run all Member in 1 prefix with CCV hierarchy, then go to 2 of hierarchy and return his grandparents pillar value (Core.Abbrev).

    I already called formula Custom.GrandParent Just need help to navigate.

    My second ask is the following:

    Concate (propvalue (Core.ABBREV) with the propvalue (Custom.AccountName) of the CHILD if the child begins by AAA, if this is not the case, down 1 level more and use this value (Custom.AccountName).

    Don't know how to go down a level (or 2).

    Thank you!

    Hello

    For your first case create a property derived with this formula:

    If)

    And)

    Equals (String, SUBSTRING (ABBREV (), 1, 3), CCV),

    Equals (String, PropValue (Core.HierName),Hierarchy1)

    ),

    HierNodePropValue (Hierarchy2, Abbrev(),Custom.GrandParent),

    )

    Assuming that your grandparent property is a property derived local containing the formula-

    ParentPropValue (Core.Parent)



    Second case-


    NodePropValue (ListRelatedNodesWith (Descendants, Equals (String, SubString (PropValue (Core.Abbrev), 1, 3), AAA), yesterday, 1), Custom.AccountName)

    Let know if thid worked for you

    THANKS & Cheers

    Denzz

  • DRM formula to generate a Parent; Need 2 round help

    Hello world

    TFDC and Denzz have been kind enough to help me solve one of my problems with the other day.  Here is some information.

    Hi people,

    I need business which is quite complex.  I'll try to explain it the best I can to please reach out if you need more details.

    Here is my mock up, I did:

    "

    The structure on the left is my current hierarchy.  The structure on the right, this is what I want the new Parent/child relationship to look like.  Now, you may ask why I don't make this new structure? The reason is the company is unwilling to add any additional hierarchies, so I have to use attributes to generate this outcome (export), which will be transferred to a target system.

    Things to consider:

    IND-members will NOT be included in this new structure

    All PFI-members shall a PFC-parent, as shown in the right structure. The parent of PFC is created prefixing 'PFC -' the first set of 5 numbers after the first '-' symbol in the PFI member. The string after the second '-' symbol in the PFC parent is set back 2 levels (the PFI member) and grabbing the chain after the first "-" symbol.

    So, basically, the members of the PFC will be at the same level as the current Independent members.

    Please let me know if this is even possible? If so, what attributes do I need? Thanks to you all! Looking forward to your answers! Evil begins to take a crack at it on my end.

    SOLUTION! :


    TFDC suggested the following syntax for a formula (Custom.TA) and it worked perfectly!


    If (Equals (String, SUBSTRING (ABBREV (), 1, 3), PFI), Concat (PFC, SUBSTRING (ABBREV (), 4, 7), SUBSTRING (ParentPropValue (Core.parent), 4, 100)), if (Equals (String, SUBSTRING (ABBREV (), 1, 3), IND), PropValue (Core.parent)))


    QUESTION:


    So it works perfectly, and I replaced this derived formula in for the "Parent Node" attribute in my export.


    Everything works, except for PFC was now generated in the above formula and then put under the Parent node, I'm unable to add an alias, as it does not lie in the name column:


    REQUIREMENT:

    Now I think I need to create a new derived 'name' property to take care of this, but I don't know where to start. Ideas or workarounds?  Thank you, everyone!

    The formula TA_Name is incorrect-

    Current

    If (and (Equals (String, SUBSTRING (ABBREV (), 1, 4), IND-), GreaterThan (PropValue (Core.Children), 0, Integer)), ListNodePropValues (ListChildren (), [comma],Custom.ParentTest), Abbrev())

    Should be

    If (and (Equals (String, SUBSTRING (ABBREV (), 1, 4), IND-), GreaterThan (PropValue (Core.Children), 0, Integer)), ListNodePropValues (ListChildren (), [comma],Custom.TA_Parent), Abbrev())

    Parent_Test was my property, you should have your property parent instead.

    Thank you

    Denzz

  • How to use xdoxslt:set_variable and concat all RTF model

    Hi all

    I have a requirement of the concatenation of a value for a loop

    for example.

    I have a loop in the line and I need to display the line_ids like commas in the model

    How is it possible

    my end result should be 11122,134445,123344

    For this, I tried the below but it is the slightest mistake out. How can I do this:

    <? xdoxslt:set_variable ($_XDOCTX, 'line_id', concat ((xdoxslt:get_variable($_XDOCTX,'line_id'), ',', LINE_ID)? >))

    Kindly help.

    You can use following logic to achieve your requirement.

    Make sure that the name of the Group and tag name matches your XML tags.

  • BPEL scenario 1 (Using concat function and display)

    Hello

    I am completely new to the BPEL space and I try to run the scenario 1, which is the source text with the print output and input values to concat.

    I installed the software mentioned in the link - https://java.net/projects/oraclesoasuite11g/pages/Home (please let me know if something's not working)

    The issue that I am facing is when I am trying to deploy the project, I get 'IntegratedWeblogicServer' option in 'application server' (Assistant), who in turn does not 'SOAServers', so I'm not able to complete the wizard.

    I saw message saying "connection should be put in place, with the application server and integrated server", how?

    In addition, please let me know how get you to the page of the admin, where the input text will be filled in and is at - it a particular sequence in which servers (process of Oracle BPEL manager/Oracle DB / Oracle service bus/Web logical server /). I hope I have all components, but I am not able to configure them properly.

    Could someone help me on this.

    Kind regards

    Alexander

    Hello

    Have after installing the binary files you created your own weblogic domain name?

    A useful guide on how to install and configure the entire package:

    - http://www.oracle.com/technetwork/middleware/soasuite/overview/quickstartguidesoasuite11gr1ps4-459545.pdf

    Flat products referenced in this guide, it must be valid.

    Kind regards

    Mathieu

  • Using CONCAT

    Hi all

    I am a fledgling start with databases. I wonder if anyone here could help me with the following query:

    Select CONCAT(last_name,'',first_name)
    employees


    When I run this query in SQL developer, I get the following error:

    ORA-00909: invalid number of arguments
    + 00909. 00000 - "invalid number of arguments ' +.


    The goal is to concatenate the fields name and last name with a space between the two.


    Thank you

    Welcome to the forum.
    Try:

    select last_name||' '||first_name
    from   employees;
    

    As some more general starting points:
    http://tkyte.blogspot.nl/2012/08/the-keys-to-Oracle.html
    {message: id = 9359970}
    {message: id = 9360002}

  • OMB + / TCL help

    Hello

    We have a large number of ETL mappings are deployed in each of our markets (we have different markets in the system)

    STEP_1_CUSTOMER_DE
    STEP_1_PRODUCT_DE
    STEP_1_SALES_DE

    and so on, this list is long.

    When we add a new market today, copy us the entire ETL mappings and change the names of the new market code card

    STEP_1_CUSTOMER_US example)

    I started to create a script, but Im struggling a bit on the subsition of characters in the market code, I need to exchange the last 2 characters with my new variable

    Something like this (like PLSQLish)

    OMBCOPY MAPPING TO subStr ' $map_name' {"$map_name",-2, |} {' $market'}
    So I support-2 steps in the chain and concat with my new code market
    (Notice: statement above isn't correct)

    Any help from anyone who knows what to do?

    BR /.

    Here's a way to do...

    the market value IN
    s the value "abcd_US".
    Figure i [length of string $s]
    incr I have-3
    Define newstr [string $s $i range 0] $market

    See you soon
    David

  • Help selection marquee tool

    Hello

    When we choose object via the marquee tool, I need to cut this object and paste in the same place as layer 1, and resize the object to 10% and re select the second object and do the same process.

    But I'm unable to do this process.

    Please find the bottom, any help is very appreciated.

    aDoc var = app.activeDocument;

    var salt = aDoc.selection;

    // =======================================================

    var idCpTL = charIDToTypeID ('CpTL");

    executeAction (idCpTL, undefined, DialogModes.NO);

    // =======================================================

    var idslct = charIDToTypeID ("TPCV");

    var desc16 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    ref10 var = new ActionReference();

    var idLyr = charIDToTypeID ("Lyr");

    Ref10.putName (idLyr, "Layer 1");

    desc16.putReference (idnull, ref10);

    var idMkVs = charIDToTypeID ("MKV");

    desc16.putBoolean (idMkVs, false);

    executeAction (idslct, desc16, DialogModes.NO);

    aDoc.activeLayer.resize (105 105, AnchorPosition.MIDDLECENTER)

    Alert ('OK', 'Test')

    How to select the second need help object.

    // =======================================================

    var idCpTL = charIDToTypeID ('CpTL");

    executeAction (idCpTL, undefined, DialogModes.NO);

    var idslct = charIDToTypeID ("TPCV");

    var desc25 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref18 = new ActionReference();

    var idLyr = charIDToTypeID ("Lyr");

    ref18.putName (idLyr, 'Layer 2');

    desc25.putReference (idnull, ref18);

    var idMkVs = charIDToTypeID ("MKV");

    desc25.putBoolean (idMkVs, false);

    executeAction (idslct, desc25, DialogModes.NO);

    aDoc.activeLayer.resize (105 105, AnchorPosition.MIDDLECENTER)

    // =======================================================

    var idCpTL = charIDToTypeID ('CpTL");

    executeAction (idCpTL, undefined, DialogModes.NO);

    var idslct = charIDToTypeID ("TPCV");

    var desc30 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref22 = new ActionReference();

    var idLyr = charIDToTypeID ("Lyr");

    ref22.putName (idLyr, "Layer 3");

    desc30.putReference (idnull, ref22);

    var idMkVs = charIDToTypeID ("MKV");

    desc30.putBoolean (idMkVs, false);

    executeAction (idslct, desc30, DialogModes.NO);

    aDoc.activeLayer.resize (105 105, AnchorPosition.MIDDLECENTER)

    Kind regards

    Vinoth

    The script that I found and modifed begins with a transparent activeLayer. It performs some tasks not necessary because you want to start with a layer with a selection. So instead of modifing the script to change the document mode, I modified the script to work with the other modes. I think that is should now work with grayscale mode, RGB, lab, and CMYK. Note, that I don't have to add a test for fashion and this may fail with other modes.

    // original script can be found at  http://forums.adobe.com/message/4272787#4272787
    // modified to start with a selection instead of a transparent layer
    // and to work with other modes
    // then resize each new layer
    #target photoshop
    if (app.documents.length > 0) {
        var percent = Number(prompt('Enter percent to resize. Please enter a whole number greater than 0.',10));
        if(percent != NaN && percent > 0){
            myDocument = app.activeDocument;
            var theMask = myDocument.channels.add();
            myDocument.selection.store(theMask);
            selectComponentChannel();
            var check = true;
            // set to pixels;
            var originalRulerUnits = app.preferences.rulerUnits;
            app.preferences.rulerUnits = Units.PIXELS;
            // set to 72ppi;
            var originalResolution = app.activeDocument.resolution;
            myDocument.resizeImage (undefined, undefined, 72, ResampleMethod.NONE);
    
            var theLayer = myDocument.activeLayer;
            myDocument.selection.load(theMask, SelectionType.REPLACE);
    
            // create work path;
            myDocument.selection.makeWorkPath(1);
            var subPathsNumber = myDocument.pathItems[myDocument.pathItems.length-1].subPathItems.length;
            // check for a high number of paths;
            if (subPathsNumber > 30) {
                      check = confirm("warning\rthere appear to be "+subPathsNumber+" elements.\rif this number is too high noise may have caused them.\rthis may result in a crash.\rproceed?")
                      };
            // do the operation;
            if (check == true) {
                      var thePathInfo = collectPathInfo(myDocument, myDocument.pathItems[myDocument.pathItems.length-1]);
            // create one path for every subpathitem:
                      for (var m = 0; m < thePathInfo.length - 1; m++) {
                                var theSubPath = thePathInfo[m];
                                var aPath = createPath ([theSubPath], m+"_path");
                                aPath.makeSelection(0, true, SelectionType.REPLACE);
                               myDocument.selection.load(theMask, SelectionType.INTERSECT);
            // layer via copy;
                                try {
                                          executeAction( charIDToTypeID( "CpTL" ), undefined, DialogModes.NO );
                                          myDocument.activeLayer.resize(100+percent,100+percent, AnchorPosition.MIDDLECENTER);
                                          myDocument.activeLayer.name = theLayer.name + "_" + m
                                          }
                                catch (e) {};
                                myDocument.pathItems[myDocument.pathItems.length-1].remove();
                                myDocument.activeLayer = theLayer;
                                };
                      theMask.remove();
                      };
            // reset;
            app.preferences.rulerUnits = originalRulerUnits;
            myDocument.resizeImage (undefined, undefined, originalResolution, ResampleMethod.NONE);
        }
    };
    ////////////////////////////////////
    ////////////////////////////////////
    ////////////////////////////////////
    ////// function to create path from array with one array per point that holds anchor, leftdirection, etc, 2010 //////
    function createPath (theArray, thePointsName) {
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.POINTS;
    lineSubPathArray = new Array ();
    if (theArray[theArray.length - 1].constructor != Array) {var numberOfPoints = theArray.length - 1}
    else {var numberOfPoints = theArray.length};
    for (var b = 0; b < numberOfPoints; b++) {
              var lineArray = new Array ();
              for (c = 0; c < (theArray[b].length); c++) {
                        lineArray[c] = new PathPointInfo;
    
                        if (!theArray[b][c][3]) {lineArray[c].kind = PointKind.CORNERPOINT}
                        else {lineArray[c].kind = theArray[b][c][3]};
    
                        lineArray[c].anchor = theArray[b][c][0];
    
                        if (!theArray[b][c][1]) {lineArray[c].leftDirection = theArray[b][c][0]}
                        else {lineArray[c].leftDirection = theArray[b][c][1]};
    
                        if (!theArray[b][c][2]) {lineArray[c].rightDirection = theArray[b][c][0]}
                        else {lineArray[c].rightDirection = theArray[b][c][2]};
    
                        };
              lineSubPathArray[b] = new SubPathInfo();
              lineSubPathArray[b].operation = ShapeOperation.SHAPEADD;
    
              if (theArray[b][theArray[b].length - 1].constructor == Array) {lineSubPathArray[b].closed = true}
              else {lineSubPathArray[b].closed = theArray[b][theArray[b].length - 1]};
    
              lineSubPathArray[b].entireSubPath = lineArray;
              };
    var myPathItem = app.activeDocument.pathItems.add(thePointsName, lineSubPathArray);
    app.preferences.rulerUnits = originalRulerUnits;
    return myPathItem
    };
    ////// function to collect path-info as text //////
    function collectPathInfo (myDocument, thePath) {
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.POINTS;
    var theArray = [];
    for (var b = 0; b < thePath.subPathItems.length; b++) {
              theArray[b] = [];
              for (var c = 0; c < thePath.subPathItems[b].pathPoints.length; c++) {
                        var pointsNumber = thePath.subPathItems[b].pathPoints.length;
                        var theAnchor = thePath.subPathItems[b].pathPoints[c].anchor;
                        var theLeft = thePath.subPathItems[b].pathPoints[c].leftDirection;
                        var theRight = thePath.subPathItems[b].pathPoints[c].rightDirection;
                        var theKind = thePath.subPathItems[b].pathPoints[c].kind;
                        theArray[b][c] = [theAnchor, theLeft, theRight, theKind];
                        };
              var theClose = thePath.subPathItems[b].closed;
              theArray = theArray.concat(String(theClose))
              };
    app.preferences.rulerUnits = originalRulerUnits;
    return theArray
    };
    function selectComponentChannel() {
        try{
            var map = {}
            map[DocumentMode.GRAYSCALE] = charIDToTypeID('Blck');
            map[DocumentMode.RGB] = charIDToTypeID('RGB ');
            map[DocumentMode.CMYK] = charIDToTypeID('CMYK');
            map[DocumentMode.LAB] = charIDToTypeID('Lab ');
            var desc = new ActionDescriptor();
                var ref = new ActionReference();
                ref.putEnumerated( charIDToTypeID('Chnl'), charIDToTypeID('Chnl'), map[app.activeDocument.mode] );
            desc.putReference( charIDToTypeID('null'), ref );
            executeAction( charIDToTypeID('slct'), desc, DialogModes.NO );
        }catch(e){}
    };
    
  • Requirement of BEEP - Concat

    Hi gurus,

    I need concat these 2 fields JobTitle and workplace.

    If JobTitle null

    Output is: workplace

    If the workplace is null

    Output is: job title

    If the title of the job and the workplace is not null

    Output is: the job title, workplace

    Need your help how this code to the BEEP.

    Thank you
    JP

    You can use ,.

  • Help in Concatination

    Dear all,


    When I put the following code in my Oracle database:
    select "The customer number is " + customernumber + "and Name is " + customername + "  and contact name is " + CONCAT(contactfirstname,contactlastname) + "."  from customers;
    I get the following error:

    >
    ORA-00904: ".": invalid identifier
    >

    Thank you and best regards,
    KP

    Hi, Karthik,

    Karthik Perumal wrote:
    Hello

    Can we use the code above in a view?

    Try it and see.
    >

    Example:

    create view customers_text as select 'The customer number is ' || customernumber || ' and the name of the customer company name is  ' || customername || ' .The  contact name in that company is ' || CONCAT(contactfirstname,contactlastname) || '.'  from customers;
    

    Help people who are trying to help you. The format of your code. It is hard to read these lines long.

    Type a unique name for each column in the view. Have you seen how I named the customer_message column in my first answer?

  • Decode the query help

    Hello
    I'm new to the development of Oracle.
    Oracle 10 g 2

    My original query:

    SELECT APP, count (*)
    TRANSACTION
    WHERE TYPE in ('ShipmentConfirmPR', 'ShipmentConfirm', 'ShipConfirm')
    and the APP ("SAPPI", "SAPPI", "SAPR3") and INTERVENE ('9320 ', '9332','1208 ')
    GROUP BY APP TYPE
    order of the APP

    the result of this query:
    SAPPI 100
    SAPPI 600
    SAPR3 440

    My requirement
    And I want to have something like output

    LDCS 100
    TSW 600
    PDC 440

    IE.the APPP and STEP combinations. Must return the specified values
    SAPPI & 9320-> LOC (here SAPPI IE APP is the same for both... but it's a coincidence IE APP can be sliced also)
    SAPPI & 9332-> tsw
    SAPR3 & 1208-> pdc

    Options, I tried:
    Query provided by one of the Forum members...
    SELECT THE CHECK BOX
    WHEN APP = "SAPP1" THEN DECODE (step, '9320', 'LSW', '9332', "TSW")
    WHEN APP = "SAPR3" step = '1208' AND 'PDC '.
    END app
    COUNT (*)
    TRANSACTION
    WHERE TYPE in ('ShipmentConfirmPR', 'ShipmentConfirm', 'ShipConfirm')
    AND THE APP ("SAPPI", "SAPPI", "SAPR3")
    AND STEP IN ('9320', '9332', ' 1208')
    GROUP BY APP, STEP
    ORDER OF THE APP.

    EXECUTION PLAN

    | ID | Operation | Name |
    ------------------------------------------------------------------------
    | 0 | SELECT STATEMENT |
    | 1. GROUP SORT BY |
    | 2. INLIST ITERATOR.
    | 3. TABLE ACCESS BY INDEX ROWID | TRANSACTION |
    | 4. INDEX RANGE SCAN | TRANSACTION_IDX |


    The output of the query (as above) must partially match the following query (a particular combination of CLO)

    SELECT count (1)
    TIBCO. TRANSACTION_HISTORY
    WHERE TYPE = 'ShipmentConfirm '.
    and APP in ("SAPPI") and INTERVENE ('9332')


    My Questions:

    1.*There are indexes on all 3 APP passes it's IE, STEP and TYPE *. I don't want a FULL table Scan (as one would use the index). Can change us the query / use of indices, etc. to make it faster?

    2. is the right to approach? Would the use of the concat operator in the function decode work better for my needs?
    Something like

    Select decode (APP |) STEP, 'SAPP9332', 'X') of TRANSACTION_HISTORY where < COND >

    If Yes can you please provide the query?

    3. ANY other approach / request for my requirement.

    Thanks in advance.

    Hello

    user13517642 wrote:
    ... EXECUTION PLAN

    | ID | Operation | Name |
    ------------------------------------------------------------------------
    | 0 | SELECT STATEMENT |
    | 1. GROUP SORT BY |
    | 2. INLIST ITERATOR.
    | 3. TABLE ACCESS BY INDEX ROWID | TRANSACTION |
    | 4. INDEX RANGE SCAN | TRANSACTION_IDX |

    The output of the query (as above) must partially match the following query (a particular combination of CLO)

    SELECT count (1)
    TIBCO. TRANSACTION_HISTORY
    WHERE TYPE = 'ShipmentConfirm '.
    and APP in ("SAPPI") and INTERVENE ('9332')

    My Questions:

    1.*There are indexes on all 3 APP passes it's IE, STEP and TYPE *. I don't want a FULL table Scan (as one would use the index). Can change us the query / use of indices, etc. to make it faster?

    A full table scan might be the fastest way to get results. Do you have any reason to think that it would be faster to go through the index? How selective are the clues? In other words, what is the percentage of rows in the table correspond to each of the values in the WHERE clause?

    2. is the right to approach?

    It depends on what you're trying to do, which is not at all clear to me.

    Would the use of the concat operator in the function decode work better for my needs?
    Something like

    Select decode (APP |) STEP, 'SAPP9332', 'X') of TRANSACTION_HISTORY where

    If you use this approach, look out for the problem Ab asse crevit . For example, if you have these 4 rows and 2 columns:

    str1     str2
    ----     ----
    (NULL)     FOO
    F     OO
    FO     O
    FOO     (NULL)
    

    There are 4 values of distict of str1 (counting NULL) and 4 separate values of str2, str1 but | str2 is the same for each of them. In the above example, it there is no way to know, just by looking at the concatenated string, including str1 and str2 ends begins. Maybe it's not the case for your specific data (for example, if the application is still exactly 5 characters long). otherwise, you may need to add some kind of delimiter, like this

    app || '+' || step
    

    where you know that '+' never occurs in one of these columns.

    3. ANY other approach / request for my requirement.

    CASES, as I mentioned in your previous message:
    Decode the help function
    and as you have used above.

    In this thread, you said "I have to use the decode function. Why? It is a competition of school Etudieeo DECODE is explicitly required? Why you don't want in the best way, what that turns out to be?

    Your WHERE clause:

    AND APP IN ('SAPPI', 'SAPPI', 'SAPR3')
    AND STEP IN ('9320', '9332', '1208')
    

    admits 6 possible combinations of APA and step:

    app     step
    -----     ----
    SAPP1     9320
    SAPP1     9332
    SAPP1     1208
    SAPP3     9320
    SAPP3     9332
    SAPP3     1208
    

    but you are looking for only 3 of these combinations in DECODE it or the expression BOX. (Have 2 copies of 'SAPP1' e list won't do any good, but it does hurt real, either.)
    By the way, is "SAPPI" app with the letter 'I' at the end, or "SAPP1", with the number '1' at the end?

    Published by: Frank Kulash, March 24, 2011 19:44

  • Please help me with the custom text field FormCalc

    There is someone online has done a very good thing for me - they helped me create a text field that would be of type 'this document has been printed on _' and include some day the pdf was printed on the employer's intranet site.

    I had a shortcut in my favorites and would click on it and place it on each new document that I needed on.

    Because the computer I was using suddenly fell down, can't get the details of how to set it up again. I have a pdf form that includes the box, but when I open it in LiveCycle, it's just empty.

    That's what I saved:

    < field h = mm "8,4935" name = "PrintedOn" w = "141,0398 mm" x = "-0,0001 mm" y = "0 mm" xmlns ="http://www.xfa.org/schema/xfa-template/2.5/" > ""
    < ui >
    < textEdit >
    < border hand = 'right' presence = "hidden" >
    <? templateDesigner styleId aped0? > < / border >
    < margin / >
    < / textEdit >
    < /UI >
    < police size = cast "18pt" = "Tahoma" weight = "bold" >
    < filling >
    < color value = "221,221,221" / >
    < / filling >
    < / make >
    < para hAlign = "center" vAlign = "middle" / >
    < link match = "none" / >
    < activity = "prePrint" ref = "$host" >
    < script >$ .rawValue = concat ("this document has been printed on:", num2date (date (), DateFmt (1))); < /script >
    < / event >
    < / field >

    I don't remember what to do to get this working.

    I use this text box "print on" ALL the time, and I need to know what to do to get back to work quickly.

    If there is someone who could help me, I could also send you a sample of a form which includes it - so you can see exactly what I mean.

    If someone could remember how to program this kind of thing in once again and save it in LiveCycle, then explain how I can put it on another computer so I'd really, REALLY appreciate it.

    ~ Chris

    PS - this one as I had put in place only prints print message per day on the first page. If she could somehow print on EACH page of the PDF file without me having to click and add it to each page individually, it would be better... but let's first!

    Hello

    The script is here. If you place a new textfield in the Master Page and put the following script in the event of pre-publication of the field:

    $ = concat("This document was printed on: ", num2date(date(), DateFmt(1)))
    

    The language is FormCalc.

    Please note that you don't need to go to the XML Source for this. Simply select the textfield object and open the Script Editor (in the Windows menu). Drag the bottom of the editor bar so that you can see a few lines, and then set the FormCalc language.

    Should work,

    Niall

  • Need help on rewriting query for the DOMAIN CONTEXT index

    Hello

    I'd be really grateful if someone could give me a tip how to rewrite the query so that the DOMAIN INDEX is executed as the last and not the first... According to the plan to explain it...

    What I want: I want to index FIELD CONTAINS search for text ONLY for ITEMS that are extracted from the inner query (table MS_webarticlecache)...

    Because it seems now DOMAIN INDEx is executed first on all the MS_ARTICLE table and then filtered by inner query ID's...

    This query execution time is now around 86seconds... Inner query has all the indexes for SID_SUBCLIPPING and DATE_ARTICLE... (seen in line 3 of explain plan) If this one is fast and returns the unique id by grouping it and concating keywords...

    Without text... search results are retrieved in 3 seconds...

    DOMAIN index is created with Oracle 11 g FILTER BY ID, ART_DATE... and is on the MS_ARTICLE table and the ORATEXT seen on the sql column...

    Table MS_ARTICLE has 1.8mil lines...
    MS_WEBCACHEARTICLE table has cca. 2 lines of millet


    SQL:
    SELECT A.*, B.KEYWORDS OF
    MS_ARTICLE HAS
    JOIN THE
    (SELECT be, wm_concat (keywords) "KEY words" FROM MS_webarticlecache WHERE SID_SUBCLIPPING IN ('LEK', "KRKA") AND DATE_ARTICLE > = TRUNC(SYSDATE-400) AND DATE_ARTICLE < = TRUNC (SYSDATE) GROUP BY be) B
    WE
    A.ID = B.ID_ARTICLE AND CONTAINS (A.ORATEXT, 'IMMUNAL', 1) > 0

    Here is explain plan:
    Plan
    SELECT STATEMENT ALL_ROWSCost: 1 K bytes: cardinality K 16: 237
    1 FIELD INDEX INDEX (DOMAIN) PRESCLIP. ART_IDX cost: 120
    TABLE 2 ACCESS BY INDEX ROWID TABLE PRESCLIP.MS_ARTICLE cost: cardinality K bytes: 5 775: 237
    3 INDEX RANGE SCAN INDEX PRESCLIP. WEBCACHE_SUBCLIPDATE cost: cardinality 10: 964
    TABLE ACCESS BY INDEX ROWID TABLE PRESCLIP.MS_WEBARTICLECACHE cost 4: 250 octets: 45 K cardinality: 931
    5 INLIST ITERATOR
    Cost of 6 HASH JOIN: 1 K bytes: cardinality K 16: 237
    7 FILTER
    GROUP 8 SORT BY cost: 1 K bytes: cardinality K 16: 237


    Thank you very much for the help.
    Kris

    No, dbms_stats.gather_index_stats should be enough I think. From RECONSTRUCTION vs FULL - on rebuilding mode Oracle rebuilt just the table $I from scratch (it creates a temporary table, fills and then current exchanges and the new tables). It should be much faster that the FULL optimization, where the picture remains the same and only its content changes. The resulting table will be more compact, too.

Maybe you are looking for

  • I tried to update 9.2.1 then my phone suddenly exploded not far no answer, I tried so many ways what should I do?

    I tried to update 9.2.1 then my phone suddenly exploded not far no answer, I tried so many ways what should I do?

  • sum of the ascii control sum

    Hi, I need to create a checksum with my AScii commands, the checksum is the unsigned sum of the ASCII values reduced to the lower 8 bits. These 8 bits are then sent to a hexadecimal number in ASCII. I think it means I convert all characters in my ASC

  • iPad can't connect to the router

    Hello I have a WRT320N router with firmware version 1.0.01 build 008.  I just got an iPad and so that it can find my router, I can't access the WiFi when I enter my password.  I can use the router with my laptop so I know the login and the password a

  • BlackBerry App to check my blackberry ID

    My app world has stopped working so I decided to change my ID via my PC and then connect via my phone now its saying "you can't connect you with a different ID to BB on thisdevice.» Connect with the original BB ID used on this unit. » What should I d

  • Certification process

    I am coming on my CCNA and a question popped into my head. There are different paths, you can hold each certifications, such as routing, switching, wireless, security, data center, ect... But I have to spend all these paths of CCNA exam before I try