Pls select help more scores

Hi Experts
I have data like this.

< pre class = "jive-pre" > < class ID = "java jive jive-code" >
OrderNo OrderQTY OnhandQTY OnhandSubInvCode
311000014 50 50 FC_AREA
311000014 50 119 ST - FG
311000015 50 70 FC_AREA
311000015 50 120 ST - FG

< / code > < / pre >
But I'm looking for an output like below...
< pre class = "jive-pre" > < class ID = "java jive jive-code" >
OrderNo OrderQTY OnhandQTY OnhandSubInvCode
311000014 50 50 FC_AREA
119 M - FG
311000015 70 70 FC_AREA
120 ST - FG
< / code > < / pre >
I try to used function < = font color 'marine' > more (partition by...) < / police > but is not successful.

Pls suggest me which works how can I applied for her.

We thank in advance.

mosaq wrote:
If you are on oracle sql prompt... sql parameters following who will do for you...

SQL > break on OrderNo, OrderQty

Sajid

It works, but only in SQL * more.
If the information is necessary in order to be displayed via other means such as output to a file using UTL_FILE or another front end interface, then you can not use this way.

Tags: Database

Similar Questions

  • When I select Help and support icon, I get an error message indicating that the feature could not start.

    help and support does not work

    When I select Help and support icon, I get an error message indicating that the feature could not start.

    I use a Vista 32 bits on a HP computer operating system model number m8300f.

    In addition, I bought a copy of Win 7, but who could not load freezing during installation.

    Hello

    Try to run the command in the elevated command prompt, follow the steps below, it could help us solve the problem.

    1. open the start menu, click programs principally made, select accessories.
    2. right click on command prompt, and then click "run as administrator ".
    3. type the following commands in the DOS prompt window and press ENTER at the end
    of each line:

    REGSVR32 MSXML3. DLL/U
    REGSVR32 MSXML3. DLL
    REGSVR32 MSXML6. DLL/U
    REGSVR32 MSXML6. DLL

    (At the elevated command prompt command should not give us any error).

    Restart the computer and try to access help and Support.

    For the problem of installation of windows 7.

    We would like to get more information about you to help solve your problem. You better, please answer the following questions.

    1. How did you start the installation process?

    2. you perform a new installation or an upgrade?

    3. what type of drive you are using for installation?

    4. at what stage of the installation has it stopped?

    5. have you received an error message?

    First of all, I would say that you disconnect external devices connected to the computer except the keyboard and mouse.

    If you have performed an upgrade suggests to restart the computer and you will be prompted for a roll back option.

    Once you're on the office suggests to run Upgrade Advisor and check what needs to be done before you start the upgrade.

    Before you begin the upgrade process to ensure that your computer meets the condition of equipment to install Windows 7 and check on the website of manufacturer computer if the computer is good to run windows 7 or not.

    Installing and reinstalling Windows

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows

  • for windows update make me number error msg: 0 x 80240036 and solve this problem poblem with fixit get msg w xp sp3 rendered and nework Framework 2 or lator should be installed pls can help you

    for windows update make me number error msg: 0 x 80240036 and solve this problem poblem with fixit get msg w xp sp3 rendered and nework Framework 2 or lator should be installed pls can help you

    See your other thread the same. http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/to-make-Windows-Update-am-getting-MSG-error-number/3f579859-ecb0-408D-9db3-804044a21fb7

  • How to recover my product key of windows 8, I installed the windows 10 techniques view without taking backup I need to go back to my windows 8 pls someone help

    How to recover my product key of windows 8, I installed the windows 10 techniques view without taking backup I need to go back to my windows 8 pls someone help

    Hi Carmen,.

    Thanks for posting your query in Microsoft Community Forum.

    I understand that you had not taken any prior backup upgrade to Windows 10 Technical Preview and need product key to retrieve Windows 8.

    So, first of all, I suggest you to check the product key in email messages when you purchased the license to the product for Windows 8. Once you get the product key, you can create a Windows 8 ISO and reinstall using this product key. See the following article:

    To create installation media Windows 8.1

    However, if you had bought the system pre-installed with Windows 8. Then, you may need to contact the Original Equipment Manufacturer (OEM) system for Windows 8 discs to restore the older operating system.

    Hope this information is useful. Let us know the results for further assistance, we will be happy to help you.

  • When you use the Polygonal Lasso with 13 elements, I get the message 'no pixels are not selected to more than 50% ' why and how to remedy?

    When you use the Polygonal Lasso with 13 elements, I get the message ' WARNING: no pixel is selected to more than 50 percent. "  Why - and how to fix it?

    Make sure that the correct layer is selected.

    Decrease the amount of feathers.

  • Why I get this message when you use the magnetic lasso tool: "WARNING: no pixel is selected to more than 50 percent."  The edges of the selection will be not visible. ?

    Why I get this message when you use the magnetic lasso tool: "WARNING: no pixel is selected to more than 50 percent."  The edges of the selection will be not visible. ?

    See here:

    WARNING: no pixel is selected more than 50%

  • I need a contact at Adobe to help more ride their computer system so that I can install 7 Phot

    I am trying to install Photoshop 7 on my new computer with Windows 8.  The Adobe system won't take serial number.  It says contact Adobe, but I can't find a way to do it.  No phone number to reach someone to help more to mount the system to get this older version that I prefer, installed.

    Rcsheets requires the page offered by John that you choose the Adobe product and the type of investigation you before providing contact information.

    You can also see the http://adobe.ly/yxj0t6 to communicate with our support team.  If you continue to have difficulties to show pages, then I would recommend that you use a different browser.

  • Help more necessary scripts please.

    OK the Script below is what I would use for what I do.  I have a lot of things that I'll add to over time so I hope you can help with some of these issues.  I have all the things I want to do marked with / /.  We can only do a section at a time if you want to make the script more easily or all at the same time it doesn't matter to me.  I'm very new script so it might take me some time to do.

    var w = new window ("dialogue {text:"Ongoing changes of execution", orientation: 'column', alignChildren: ['fill ', ' fill'], properties: {closeButton: false}}");

    w.main = w.add (' group {preferredSize: 600 (500) and alignChildren: ['left', 'fill']} "");

    w.stubs = w.main.add ("listbox", undefined, ['changes', 'Check for changes', 'Example']);

    w.stubs.preferredSize.width = 150;  {w.tabGroup = w.main.add ("group {alignment: 'fill '()' fill'}") and orientation: 'stack'} ");"

    w.Tabs = [];

    w.Tabs [0] = w.tabGroup.add ("group");

    w.Tabs [0]. Add ("statictext {text:"change"}");} ")

    w.Tabs = [];

    w.Tabs [0] = w.tabGroup.add ("group");

    w.Tabs [0]. Add ("statictext {text:"Select to make a change"}");

    w.Tabs [0]. Add ("panel");

    w.Tabs [0]. Add ('checkbox {text: 'Change Run running List1'} "") ;// turn on find and replace Script

    ~ IF possible I would like this script to be exicuted if the checkbox above is selected. After pressing the OK button

    ~ I don't want this part of the script to enable if this button is not selected.

    ~ Replace("<CR>", "^p")

    ~ Replace("", "")

    ~ Replace(":", ":")

    ~ Replace(".", ".")

    ~ Replace("^p^p", "^p")

    ~ Replace("<CR>", "^p")

    //~

    //~

    //~

    ~ the function Replace (input, output)

    //~         {

    ~ app.selection [0];

    ~ app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;

    ~ app.findTextPreferences.findWhat = entry;

    ~ app.changeTextPreferences.changeTo = output;

    ~ app.activeDocument.changeText ();

    //~

    //~

    w.Tabs [0]. Add ('checkbox {text: 'List of race change 2'} "");

    w.Tabs [0]. Add (' Panel {text: "List 1 of change running" preferredSize,: [-1, 160]} "");

    w.Tabs [0]. Add (' Panel {text: 'Running change list 2', preferredSize: [-1, 160]} "");

    I keep a list inside this Panel

    ~ "B1.   Omni before aligning information panel o in omni.

    ~ "B2.   ShopLine before aligning text panel with S in store and identifier with L Flush left text online

    ~ "B3.   Spacing of Deltron Art and logo

    ~ "B4.   Update statement Art Matthews and attribute

    ~ "B5.   A work of shot (some just change green bar Some blue ETC...)

    w.Tabs [0]. Add (' Panel {text: 'OF changes", preferredSize: [-1, 150]}" ");

    w.Tabs [0]. Add (' Panel {text: ' in baking or paste content ", preferredSize: [-1, 80]}" ");

    with(w.Tabs[0])

    {

    with (Add (' group {alignment: "left"} ""))

    {

    Add (' button {text: 'Reset al warning dialog boxes'} "");

    }

    }

    w.Tabs [1] = w.tabGroup.add ("group");

    w.Tabs [1]. Add ("statictext {text: 'Interface'}");

    w.Tabs [1]. Add (' Panel {preferredSize: [-1, -10]} "");

    w.Tabs [1]. Add (' Panel {text: "what needs changed," preferredSize: [-1, 300]} "");

    w.Tabs [1]. Add (' Panel {text: 'Options', preferredSize: [-1, 100]} "");

    w.Tabs [2] = w.tabGroup.add ("group");

    w.Tabs [2]. Add ("statictext {text:"Interface user Scaling"}");

    w.Tabs [2]. Add ("panel");

    w.Tabs [2]. Add (' Panel {text: "Example" preferredSize: [-1, 200]} "");

    I would like to integrate a picture in the sample box

    w.Buttons = w.add ("group {alignment: 'right'}");

    w.Buttons.Add ("button {text: 'OK'}");

    w.Buttons.Add ("button {text: 'Cancel'}");

    for)

    var i = 0;

    I < w.tabs.length;.

    i++){

    w.Tabs [i] .orientation = "column";

    w.Tabs [i] .alignChildren = 'bridge '.

    w.Tabs [i]. Alignment = ["fill",""];

    w.Tabs [i]. Visible = false;

    }

    w.stubs.onChange = showTab;

    function

    showTab)

    {

    If (w.stubs.selection! == null) {for (var i = w.tabs.length - 1; i > = 0;)}

    i-)

    {

    w.Tabs [i]. Visible = false;

    }

    w.Tabs [w.stubs.Selection.index]. Visible = true;

    }

    }

    w.onShow = function()

    {

    w.stubs.Selection = 1;

    showTab;

    }

    w.Show ();

    Try this... See line 58... do this and run the script

    var myResult;
    var w =new Window ('dialog {text: "Running Changes", orientation: "column", alignChildren:["fill","fill"],   properties:   {closeButton:   false}}');
    
          w.main =w.add ('group {preferredSize: [600, 500], alignChildren: ["left","fill"]}');
          w.stubs  = w.main.add ('listbox', undefined, ['Changes Made', 'Check For Changes', 'Example']);
        w.stubs.preferredSize.width  = 150;  w.tabGroup  = w.main.add ('group {alignment: ["fill","fill"], orientation: "stack"}');
          w.tabs  =[];
        w.tabs[0]= w.tabGroup.add ('group');
        w.tabs[0].add('statictext {text: "Changed"}');
                   w.tabs  =[];
        w.tabs[0]= w.tabGroup.add ('group');
        w.tabs[0].add('statictext {text: "Select a change to make"}');
                 w.tabs[0].add ('panel');
        var RunCH1= w.tabs[0].add ('checkbox {text: "Run Running Change List1"}');// Activate the Find and replace Script
    
    //~              IF possible i would this script to be exicuted if the above check mark is selected. After pressing OK button
    //~              if this button is not selected i dont wnat this part of the script to activate.
    
                 var RunCH2= w.tabs[0].add ('checkbox {text: "Running Change list 2"}');
                 var Pan1=w.tabs[0].add ('panel {text: "Running Change list 1", preferredSize: [-1, 160],orientation: "column",alignChildren: ["left","fill"]}');
                 w.tabs[0].add ('panel {text: "Running Change list 2", preferredSize: [-1, 160]}');
    
                Pan1.add('statictext {text: "B1.   Omni Align Front panel information to the O in omni"}');
                Pan1.add('statictext {text: "B2.   ShopLine Align Front panel text with S in Shop and Identifier with L in line Flush Left text"}');
                Pan1.add('statictext {text: "B3.   Deltron Spacing around Art and logo"}');
                Pan1.add('statictext {text: "B4.   Matthews Art and Attribute statement update"}');
                Pan1.add('statictext {text: "B5.   One Shot Artwork (Some change to Just green bar Some Blue ETC..."}');
    
                        // I would like a list inside this panel
    
                 w.tabs[0].add ('panel {text: "NON Changes to be made", preferredSize: [-1, 150]}');
                 w.tabs[0].add ('panel {text: "When placing or pasting content", preferredSize: [-1, 80]}');
        with(w.tabs[0])
        {
        with(add ('group {alignment: "left"}'))
        {
                       add ('button {text: "Reset al warning dialogs"}');
        }
        }
            w.tabs[1]= w.tabGroup.add ('group');
            w.tabs[1].add ('statictext {text: "Interface"}');
            w.tabs[1].add ('panel {preferredSize: [-1, -10]}');
            w.tabs[1].add ('panel {text: "What Needs Changed", preferredSize: [-1, 300]}');
    
            w.tabs[1].add ('panel {text: "Options", preferredSize: [-1, 100]}');
            w.tabs[2]= w.tabGroup.add ('group');
            w.tabs[2].add ('statictext {text: "UI Scaling"}');
            w.tabs[2].add ('panel');
            w.tabs[2].add ('panel {text: "Example", preferredSize: [-1, 200]}');
            flower=w.tabs[2].add ("image", undefined, File ("~/\Desktop/\xxx.jpg"));//place you image in desktop and put the image name in the place of "xxx"
    
                 // I would like to embed a Picture in the Example BOx
    
          w.buttons  = w.add ('group {alignment: "right"}');
         w.buttons.add  ('button {text: "OK"}');
        w.buttons.add  ('button {text: "Cancel"}');
        for(
        var i = 0;
         i < w.tabs.length;
         i++){
        w.tabs[i].orientation ='column';
        w.tabs[i].alignChildren ='fill';
        w.tabs[i].alignment =['fill','fill'];
        w.tabs[i].visible =false;
        }
        w.stubs.onChange  = showTab;
        function
         showTab ()
        {
        if(w.stubs.selection !==null){for(var i = w.tabs.length-1; i >= 0;
         i--)
         {
             w.tabs[i].visible =false;
        }
                 w.tabs[w.stubs.selection.index].visible =true;
        }
        }
          w.onShow  =function()
        {
        w.stubs.selection  = 1;
        showTab;
        }
    
     myResult = w.show();
        if(myResult == 1 && (RunCH1.value==true || RunCH2.value==true) ){
        alert("in")
        Replace_TXT("  ", "^p");
        Replace_TXT("  ", " ");
        Replace_TXT(" :", ":");
        Replace_TXT(" .", ".");
        Replace_TXT("^p^p", "^p");
        Replace_TXT(" ", "^p");
        w.close (true);
    }   
    
    function Replace_TXT(input, output)
    {
    //app.selection[0];
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.findWhat = input;
    app.changeTextPreferences.changeTo = output;
    app.activeDocument.changeText();
    } 
    
  • Select help

    Hello, I'm new in oracle sql

    I have table

    wheels unit engine auto

    car 81 kw 2 thickness

    bike                         slim           3

    bus 120 kw double 5

    300 kw ship 8

    car                                            1

    I need write sql code and get this table

    automatic printing unit

    car 3

    81 kw 2

    2 thickness

    bike 3

    3 Slim

    bus 5

    120 kw 5

    5 double

    boat 8

    300kW 8

    Thanks for help

    Hello

    I don't know if you provide an example and if you expect an answer more 'generic', but with ' hard' things, you may want to use

    SELECT auto x, y of the SUM (unit)

    FROM MyTable

    WHERE auto IS NOT NULL

    GROUP BY auto

    UNION ALL

    SELECT the engine, SUM (unit)

    FROM MyTable

    Motor WHERE IS NOT NULL

    GROUP BY engine

    UNION ALL

    SELECT wheels, SUM (unit)

    FROM MyTable

    WHERE the wheels IS NOT NULL

    GROUP BY wheels

    ORDER BY 2, 1

    ;

    HTH,

    Bruno Vroman.

  • GLITCH INDESIGN: Create an XML of the Indesign layout file - issue 'to help more of a line GREP' &amp; "Match Styles to tags"

    I currently create XML to InDesign CC by Map Style to tags.

    -Paragraph Styles are manually apply to the text. These styles include several lines of GREP to automatically apply character styles.

    -J' have some paragraph styles and character correspond to predefined tags that have the same name "match the Styles to tags.

    I found through troubleshooting only InDesign is incapable of "match Styles to tags" for more than one line of GREP. So I chose what GREP to automatically tag line and lines to manually tag.

    Please can someone help, I need maps automatically tags at least two styles of character in a paragraph through GREP.

    Thank you

    Ok. Best I can suggest running a search/replace like this:

    Which will apply in fact the character style to italic (and I'd do the "BOLD" as well just to make sure). Then run the map Styles to tags, using the application by name. Who will score the italics.

    I don't know why ID can map to the "BOLD" and not the style of italic character. It should make them both (in this case) or none at all as character styles are not actually applied by the grep, just the design of character styles.

    Mike

  • SQL - select Help - box When? Return value of the second Table?

    -Next to people on this forum I am probably somewhere between a beginner and an intermediate SQL user.

    Ive been using a case when stated in plsql to find "all who has status in any program was canceled during a specific time, but have become or are still active in another program"

    So, Im actually trying to return a value from another table in a case where, but this isn't anthing taste other than a text declared as 'Yes' or 'no '.

    This is the select statement - y at - it another way to do it where I can get the results I need?

    -case when pp.party_id in (select pp1.party_id - cancelled active clients in another program)

    of asa.program_participation pp1,.

    ASA.curr_prog_participation_status cpps1

    where pp1.program_participation_id = cpps1.program_participation_id

    and pp1.party_id = pp.party_id

    and cpps1.code_value = 'Act')

    So 'Yes' is still 'No' end as Active_in_Other_Prg

    So - instead of 'Yes', I want essentially the program they are active or pp1.program_id, another null

    It is possible that the client can be active in more than one program as well.

    Any help is greatly appreciated, I explored with if and decodes but I can't get anything to work.

    Ben

    Looks like an outer join. See doc ora: joins at

    Select p

    q.party_id

    q.program_id

    of table_with_party_id p

    , (select pp1.party_id - cancelled active clients in another program)

    pp1.program_id

    of asa.program_participation pp1,.

    ASA.curr_prog_participation_status cpps1

    where pp1.program_participation_id = cpps1.program_participation_id

    and pp1.party_id = pp.party_id

    and cpps1.code_value = 'ACT') q

    where p.party_id = q.party_id (+)

    Note: In the example above shoudn't it be a space between the (and +), but the forum software automatically converts to

    The outer join will connect display all records in the table p and q records only if fits the party_id, IE q.party_id and q.program_id will be null if there is no match.

    Edit: adding program_id

  • Select help with sql

    Hello
    could you please help write select sql to retrieve the maximum number of concurrent users, something to check?

    user_id, rec_start, rec_end
    1, 01.10.2009 12:01, 01.10.2009 13:11
    2, 01.10.2009 13:12, 01.10.2009 14:04
    3, 01.10.2009 13:35, 01.10.2009 13:55
    1, 01.10.2009 14:35, 01.10.2009 14:50
    1, 01.10.2009 14:45, 01.10.2009 14:50

    I would like:
    hour, max_of_conc_users
    01.10.2009 12: 1 - no more then 1 user at the same time
    01.10.2009 13: 2 - user_id 2and 3 record at the same time
    01.10.2009 14: 2 - user_id 1 to 2 sessions

    Thank you
    D.

    Hello

    Interesting problem!

    We will change a bit, your sample data for the (total connections per hour) much simpler problem solved by Sven and Hoek has not coincidentally the same results as your problem (the high concurrent users per hour).
    I changed the data of Hoek, adding a line, which has been lgged in for the entire period covered by others:

    CREATE TABLE t as
      select 9 user_id, to_date('01.10.2009 12:01', 'dd.mm.yyyy hh24:mi') rec_start, to_date('01.10.2009 14:49', 'dd.mm.yyyy hh24:mi') rec_end from dual union all
      select 1 user_id, to_date('01.10.2009 12:01', 'dd.mm.yyyy hh24:mi') rec_start, to_date('01.10.2009 13:11', 'dd.mm.yyyy hh24:mi') rec_end from dual union all
      select 2, to_date('01.10.2009 13:12', 'dd.mm.yyyy hh24:mi'), to_date('01.10.2009 14:04', 'dd.mm.yyyy hh24:mi') from dual union all
      select 3, to_date('01.10.2009 13:35', 'dd.mm.yyyy hh24:mi'), to_date('01.10.2009 13:55', 'dd.mm.yyyy hh24:mi') from dual union all
      select 1, to_date('01.10.2009 14:35', 'dd.mm.yyyy hh24:mi'), to_date('01.10.2009 14:50', 'dd.mm.yyyy hh24:mi') from dual union all
      select 1, to_date('01.10.2009 14:45', 'dd.mm.yyyy hh24:mi'), to_date('01.10.2009 14:50', 'dd.mm.yyyy hh24:mi') from dual
    ;
    

    The query below unpivots these data in separate lines for rec_start and rec_end. We use the analytical SUM function to count each + 1 rec_start and each rec_end as -1 to get the number of concurrent users at any time. As soon as we have these data, we can use GROUP BY TRUNC (dt, 'HH')as Sven Hoek has suggested, to get the maximum by houir:

    WITH     cntr         AS
    (
         SELECT     1  AS cnt     FROM dual     UNION ALL
         SELECT     -1 AS cnt     FROM dual
    )
    ,     events     AS
    (
         SELECT     CASE     cntr.cnt
                   WHEN   1  THEN  t.rec_start
                   WHEN  -1  THEN     t.rec_end
              END     AS dt
         ,     cntr.cnt
         FROM          t
         CROSS JOIN     cntr
    )
    ,     concurrent_users     AS
    (
         SELECT     TRUNC (dt, 'HH')          AS hour
         ,     SUM (cnt) OVER (ORDER BY dt)     AS concurrent_users
         FROM     events
    )
    SELECT       hour
    ,       MAX (concurrent_users)     AS max_of_conc_users
    FROM       concurrent_users
    GROUP BY  hour
    ORDER BY  hour;
    

    Output:

    HOUR             MAX_OF_CONC_USERS
    ---------------- -----------------
    01.10.2009 12:00                 2
    01.10.2009 13:00                 3
    01.10.2009 14:00                 3
    
  • XP8500 Radeon 7770: Multi Monitor Help (more) - New Post

    As requested by osprey4 it's a new post asking the same question

    I have a 8500 XPS with 2 GB AMD Radeon HD video card 7770.  I want three monitors VGA to the fastener.  What would be the best configuration?

    Thank you.

    You must start with a monitor connected to the video card that you did, DVI - i > VGA.

    Restart, and then press F2 before Windows starts to load to open the BIOS Setup. Use the arrow keys to navigate and find/highlight the Intel Multi display option. Press Enter to select and look in the right for an option panel to enable (it is disabled by default). Save changes and exit and let it restart.

    Then normally stop and connect the second VGA monitor to the integrated VGA adapter and reboot again. It's supposed to allow the VGA port built into work along side a video card, when you use Win 7 and have an Intel 'third generation '.

    DP and HDMI are purely digital signals. You need a dongle assets such as the one I linked above to convert the digital signal into an analog VGA signal. Most of the adapters are passive and only change the cable connector of DP in one that plugs into a VGA port, but a passive adapter is not to convert the digital signal into analog signal. (BTW: check the box, Dell may have given you a RFP > VGA dongle active with the system.)

    A divider wil does not support 2 independent monitors on a single port. All you can see is the exact same window on both screens.

    I hope this helps...

  • Sequence by select Help please:

    First of all, I'm rather at this new and need help please.

    I created the following sequence:

    CREATE SEQUENCES SQ_CASE_NUMB

    MINVALUE 1

    INCREMENT BY 1

    START WITH 1

    And from this sequence select it below:

    SELECT TO_CHAR (SQ_CASE_NUMB. NEXTVAL)

    | | To_char (SYSDATE, "fm/MM/yy")

    Case_NUMB

    OF THE DOUBLE

    Result:

    Case_NUMB

    08/01/14

    08/02/14

    08/03/14

    Can I combine the sequence 'create' and 'select '? Or should I create a function?

    What is the best option please?

    It depends on what you're trying to reach.  What you use the sequence for?  Primary key?  Experiment?  fun?

    Best option can be answered only if you provide the object...

    BTW - the select query above works, but it does not mean that you should use...  The best thing to do (if you use it as a primary key) is to create a trigger like this:

    create or replace

    TRIGGER "insert name here".

    BEFORE INSERT ON table_name

    FOR EACH LINE

    BEGIN

    SELECT sequence_name. NEXTVAL INTO: DOUBLE NEW.pkcolumn_name;

    END;

  • With the help of SCORE on top of view with UNION

    Hi guys,.

    I explain what I'm trying to do it quickly:

    2 tables: table1 and table2 with the same structure and have both a multi_column_datastore ctxsys.context.

    1 view: View1

    Select * from table1

    Union

    Select * from table2

    If I run:

    Select * from View1 WHERE contains (view1. Column1, '% textext %', 1) > 0;

    It works fine, I get the correct result.

    If I try to use the PARTITION function, I got an error:

    Select * from View1 WHERE contains (view1. Column1, '% textext %', 1) > 0 ORDER by SCORE (1);

    ORA-29921: auxiliary operator not supported with query to configure block

    I understand the problem is in the UNION inside the view, is it possible to keep work, filtering the VIEW?

    Thanks in advance

    There is no score in the view, so you cannot reference the score when you query the view.  In order to put the note in the view, you need a contains the clause, which requires a value.  A method to do this is to use sys_context.  Please see the reproduction of the problem and solution below.

    Scott@orcl12c >-reproduction of the problem:

    Scott@orcl12c > create the table1 table:

    2 (column1 varchar2 (30))

    3.

    Table created.

    Scott@orcl12c > insert into table1 values ('textext")

    2.

    1 line of creation.

    Scott@orcl12c > create table table2

    2 (column1 varchar2 (30))

    3.

    Table created.

    Scott@orcl12c > insert into table2 values ('textext")

    2.

    1 line of creation.

    Scott@orcl12c > start

    2 ctx_ddl.create_preference ('test_ds', 'multi_column_datastore');

    3 ctx_ddl.set_attribute ('test_ds', 'columns', "column1");

    4 end;

    5.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > create index table1_idx on table1 (column1)

    2 indextype is ctxsys.context

    3 parameters ("test_ds of the data store")

    4.

    The index is created.

    Scott@orcl12c > create index table2_idx on the table2 (column1)

    2 indextype is ctxsys.context

    3 parameters ("test_ds of the data store")

    4.

    The index is created.

    Scott@orcl12c > create or replace view View1

    2 as

    3 select * from table1

    4 union

    5 select * from table2

    6.

    Created view.

    Scott@orcl12c > select * from View1 where contains (view1.column1, '% textext %', 1) > 0

    2.

    COLUMN1

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

    textext

    1 selected line.

    Scott@orcl12c > select * from View1 where contains > 0 (view1.column1,'%textext%',1) order by score (1)

    2.

    Select * from View1 where contains > 0 (view1.column1,'%textext%',1) order by score (1)

    *

    ERROR on line 1:

    ORA-29921: auxiliary operator not supported with query to configure block

    Scott@orcl12c >-solution:

    Scott@orcl12c > create or replace view View1

    2 as

    3. Select the partition (1) score, table1.* from table1

    4 where contains (table1. Column1, sys_context ('text_query', 'query_value'), 1) > 0

    5 union

    6 select score partition (1), table2.* from table2

    7 where contains (table2.column1, sys_context ('text_query', 'query_value'), 1) > 0

    8.

    Created view.

    Scott@orcl12c > create or replace context text_query using text_proc

    2.

    Context that is created.

    Scott@orcl12c > create or replace procedure text_proc

    2 (p_val in varchar2)

    3 as

    4 start

    5 dbms_session.set_context ('text_query', "query_value", p_val);

    6 end text_proc;

    7.

    Created procedure.

    Scott@orcl12c > text_proc exec ('% textext %')

    PL/SQL procedure successfully completed.

    Scott@orcl12c > set autotrace on explain

    Scott@orcl12c > select * from View1 by score

    2.

    MARK THE COLUMN1

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

    3 textext

    1 selected line.

    Execution plan

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

    Hash value of plan: 4090246122

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

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

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

    |   0 | SELECT STATEMENT |            |     2.    60.     8 (0) | 00:00:01 |

    |   1.  SORT ORDER BY |            |     2.    60.     8 (0) | 00:00:01 |

    |   2.   VIEW                          | VIEW1.     2.    60.     8 (0) | 00:00:01 |

    |   3.    UNIQUE FATE |            |     2.    58.     8 (50) | 00:00:01 |

    |   4.     UNION-ALL |            |       |       |            |          |

    |   5.      TABLE ACCESS BY INDEX ROWID | TABLE1.     1.    29.     4 (0) | 00:00:01 |

    |*  6 |       DOMAIN INDEX | TABLE1_IDX |       |       |     4 (0) | 00:00:01 |

    |   7.      TABLE ACCESS BY INDEX ROWID | TABLE2.     1.    29.     4 (0) | 00:00:01 |

    |*  8 |       DOMAIN INDEX | TABLE2_IDX |       |       |     4 (0) | 00:00:01 |

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

    Information of predicates (identified by the operation identity card):

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

    6 - access("CTXSYS".") CONTAINS "(" TABLE1".»)" Column1', SYS_CONTEXT ('text_query ',' query_v)

    Alou '), 1) > 0)

    8 - access("CTXSYS".") CONTAINS "(" TABLE2".»)" Column1', SYS_CONTEXT ('text_query ',' query_v)

    Alou '), 1) > 0)

    Note

    -----

    -the dynamic statistics used: dynamic sampling (level = 2)

    Scott@orcl12c >

Maybe you are looking for

  • Cookies are deleted if Firefox closes unexpectedly

    I noticed that whenever Firefox is stopped unexpectedly (for example, if Firefox crashes, if there is a power failure or something else), all my biscuits seem to be deleted. When I open Firefox, the next time, my tabs are restored, but some cookies a

  • Toshiba 26AV605PG disable and change channels automatically

    Hello I would ask you for help on my TV.The problem is that the TV turn off itself. The time where it will shut down its random, I mean some time it will turn off in 4-5 seconds after you press the turn on button and sometimes do in a few minutes aft

  • What is an update of RAM max for Satellite 2800-400?

    64 MB, is built in (?). I found in the specifications max 192 MB, but I think that it s not up to date. Can I use RAM of 256 MB or 512 MB module?

  • x 301 win7 Ericsson 3507 g card WWAN

    Hi all Anyone got the map above to work with windows 7? Have you tried the following but it seems to make no difference. http://www-307.IBM.com/PC/support/site.WSS/Win7-beta.html#F3507g The error has said is "this device cannot start. (Code 10) » Som

  • Reference DELL 968w

    Can anyone with bright ideas on where I find the user manual for the above. The official FTP site Dell seems to be broken! Thank you