Whats the meaning of this output?

create
     table "EMP_CHART"
          "EMP_ID" number, "TITLE" varchar2( 500 byte ), "MGR" number, primary key( "EMP_ID" ) enable,
          constraint "EMP_CHAR_FK1" foreign key( "MGR" ) references "EMP_CHART"( "EMP_ID" ) enable
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (1,'CEO',null);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (2,'VP',1);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (3,'SVP',1);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (4,'CFO',1);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (5,'Director 1',2);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (6,'Director 2',2);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (7,'Director 3',3);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (8,'Director_4',3);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (9,'Manager_1',6);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (10,'Manager_2',6);
Insert into EMP_CHART (EMP_ID,TITLE,MGR) values (11,'Manager_3',7);
COMMIT;
When I run following query, there's seems to be junk data in PRIOR_EMPID column:
select level, emp_id, prior emp_id prior_empid, mgr, prior mgr prior_mgrid, lpad(' ', level*2) || title title_f
from emp_chart a
start with mgr is null
connect by mgr = prior emp_id
order siblings by 3;
When I change the order by clause and run the following query, results are good.
select level, emp_id, prior emp_id prior_empid, mgr, prior mgr prior_mgrid, lpad(' ', level*2) || title title_f
from emp_chart a
start with mgr is null
connect by mgr = prior emp_id
order siblings by title;
Why is there a difference in results returned by PRIOR_EMPID column between the above two queries?

Hi,
What version of Oracle are you using?
In 10.2.0.1.0 Express Edition, I don't even get any results. The query with "ORDER SIBLINGS BY 3" didn't return anything in 10 minutes (the longest I let it run). Explicitly naming that expression ("ORDER SIBLINGS BY PRIOR emp_id") or using another number ("ORDER SIBLINGS BY 2") worked quickly, with expected results.
There's no practical reason to ORDER SIBLINGS BY that expression. Siblings, by definition, have the same parent, so PRIOR anything will be the same for all siblings. Of course that doesn't justify the behavior. It may, however, explain why that feature wasn't tested more thoroughly.

Similar Messages

  • Charges outside my allowance SMMTUV what the meaning of this?

    I am getting Charges outside my allowance SMMTUV what the meaning of this?

    Hi 
    Welcome to the EE Community.
    It sounds like you are subscribed to a Third Party service.
    Where this shows on your bill there will be a 5 digit code either on the entry above or below.
    Click Here for the EE Bills explained Help pages. Under the section Charges from other companies enter the code and this will give the information for the company.
    Hope this helps!
    Thanks. 

  • Whats the meaning of this value (What does it represent)

    Please can anybody explain whats the meaning of the values after by
    ORA-01652: unable to extend temp segment by 12137 in tablespace SYSTEM
    ORA-01652: unable to extend temp segment by 12140 in tablespace SYSTEM
    ORA-01652: unable to extend temp segment by 12137 in tablespace SYSTEM
    ORA-01652: unable to extend temp segment by 18206 in tablespace SYSTEM
    ORA-01653: unable to extend table AA.Table1 by 4980 in tablespace OTHERS
    ORA-01653: unable to extend table AA.Table2 by 80 in tablespace OTHERS
    ORA-01653: unable to extend table AA.Table3 by 33353 in tablespace HISTORIES
    ORA-01653: unable to extend table AA.Table4 by 4392 in tablespace HISTORIES
    ORA-01653: unable to extend table AA.Table5 by 41 in tablespace CUSTOMERS
    Aqeel Nawaz
    Thanks

    Ummm, because it is ;)
    However, if that isn't enough to convince you, just take a look at the description in the error message.
    If that's not enough, then perhaps this demo might help (note database has 8K block size):
    SQL> create tablespace small datafile 'c:\temp\small01.dbf' size 2M extent management local uniform size 1m;
    Tablespace created.
    SQL> create table t1 (id number) tablespace small;
    Table created.
    SQL> alter table t1 allocate extent;
    alter table t1 allocate extent
    ERROR at line 1:
    ORA-01653: unable to extend table BOWIE.T1 by 128 in tablespace SMALL
    Finally, what temporary tablespace are you referring to, where did the user state the version of Oracle, the type of tablespace they were using or the fact uniform sizes are being used ?
    Therefore, your assumption that the "temp" tablespace has fixed extent sizes might not be correct ...
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • WHAT THE MEANING OF THIS LINE Sorry, your browser/program is not supported by Web Dynpro

    Sorry, your browser/program is not supported by Web Dynpro pls tell me whats the meaning of above line

    You might try spoofing '''IE7''' User Agent strings to make a wepage or web-based application "think" you're running IE7.
    * https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/

  • Whats the meaning of 'reaction' !

    in a SAP standard code i found a systax like
    if reaction = 'A' then ,........
    Whats the meaning of this ?

    Well, basically, that is a conditional statement which is comparing the variable REACTION to the literal "A".  REACTION is a variable of some type in the parameter, and if its value is = "A", then the program will do some lines of code.
    This could mean anything within the context of the program, this variable could be used to evaluate a variable from a function module which the user is giving some answer via a button, or anything.
    Regards,
    Rich Heilman

  • When grep pmon | whats is the 3,4,5,6,7,8 column meaning in this output?

    # ps -ef | grep pmon
    oracle 7065 1 0 00:10:39 ? 0:00 ora_pmon_msgdb1
    oracle 27604 1 0 May 05 ? 51:32 ora_pmon_msgdb2
    whats is the 3,4,5,6,7,8 column meaning in this output?

    Have you ever tried 'ps -ef' without the grep? (Perhaps "ps -ef | more".) Many commands actually output the column name.
    Have you ever tried 'man ps' to see what the designers of your OS have decided to output in your specific OS?
    (Totally off topic - why are you using root? Most professional organizations would slap fingers for doing that, and people who really want to study Oracle will practice to be proficient in the ways of the real world. <g>)

  • MM - PO - what is the meaning of this button?

    Dear friends,
    Could anybody help me with one question.
    There is a strange button in a Purchasing Order on the Account Assignment tab page on this screenshot (it is marked with red color).
    Screenshot below
    http://content.foto.mail.ru/mail/raiden87/81/i-84.jpg
    What is the meaning of this button? When it is used for?
    I hope that anybody knows the meaning =)

    hi raiden,
    as for as i have gone through the issue I have come to know that:
    If you want to use multiple account assignment for a line item in PO then at that moment you will have to first press the "repeat on " button. only after that multiple account button will be active that is just before your "repeat on " button.
    Steps:
    1:Save your PO.
    2:Go to transaction code ME22N to change the PO.
    (Here you will firstly see that the multiple a/c assignment button is firsty gray.It will become active only after when you press the "repeat on" button).
    I hope It will be helpfull for you.
    regards,
    Aslam Ansari.

  • So I have an iPad with the smart cover, and it's usually supposed to turn on the iPad when u open it, but it's no doing that for me. Nor is it turning off without pressing the button. What is the meaning of this?

    So I have an iPad with the smart cover, and it's usually supposed to turn on and off the iPad when u open it and close it, but it's not turning on for me. Nor is it turning off without pressing the button. What is the meaning of this?what caused it to be this way? Is there someway that I could fix it?

    Wait a sec did this just start?
    You set up the smart cover function in settings (you did that, right?) so, if you did that and it's failed you make an appointment at your nearest Genius Bar now.

  • What is the meaning of this column in the pricing  procedure?

    Dear Gurus,
    What is the meaning of this column in the pricing procedure?
    thanks..

    subtotal field : Subtotal field is used to pass the value to some other field in PO .
    for ex: using value 9 you pass the value to field komp-brtwr. so that this can be used in  any other routine in the pricing procedure.
    requirement field: if there is a scenario that condition type should come in pricing on some condition like vendor country is india. in that case use create the requirment and attached this requirement.in this requirment you put logic and set the sy-subrc value 4 or 0.

  • What's the meaning of this error?

    Hi,
    I've tried to load data to ODS.
    But  i got this error, "Error4 while loading data" or "Error1 while loading data".
    Whats the meaning of both of this error?
    Regards,
    Arun.M.D

    Dear Arun,
    The transfer rules transform and clean up the data from the PSA into ODS. Please check if you have correct data in PSA and transfer/update rules are correct.
    Note:
    It is also possible to schedule the activation of ODS object data and the update from the ODS object into the related InfoCubes or ODS objects.
    The individual steps, including the ODS object processing, are logged in the Monitor. Logs detailing the activation of the new records from the existing request in the ODS object, are also stored in the Monitor.
    Reward if it helps.
    Regards,
    Naveen.

  • What The Meaning Of Sorry, this Adobe product is currently not available for sale in your country

    What The Meaning Of Sorry, this Adobe product is currently not available for sale in your country

    And, um, what country are you currently in (connecting from)?

  • Please give the meaning of this 9.2.0.7

    please give the meaning of this 9.2.0.7
    each number represents what?

    It's a version number. They're quite common in the computer industry.
    The first number is the version of the database. This supposedly represents major changes in database functionality (usually there's a big idea Oracle 8 was ORDBMS, 9 was (I think) XML, 10 was definitely grid, who knows what 11 will bring).
    The second and third numbers represent incremental releases - these represent enhances to the main release. Deciding whether the next release after 9.0.7 should be numbered 9.0.8 or 9.1.0 is often just down to marketing.
    The fourth number is a patch release and just represents a package of bug fixes.
    It's interersting (well, mildly diverting) that 8i went from 8.1.5 through to 8.1.7.4 but never made it to 8.2. That eventually became 9.0.1.
    Is that what you wanted to know?
    Cheers, APC

  • Whats the meaning of plus in query : select employeename from emp where emp

    Hi All,
    Can someone please explain me whats the meaning of plus sign in following SQL. I have nevercome across this syntax
    select employeename from emp where empid(+) >= 1234.

    Example of equivalent queries using oracle syntax and ansi syntax
    SQL> ed
    Wrote file afiedt.buf
      1  select d.deptno, d.dname, e.ename
      2  from dept d, emp e
      3* where d.deptno = e.deptno (+)
    SQL> /
        DEPTNO DNAME          ENAME
            20 RESEARCH       SMITH
            30 SALES          ALLEN
            30 SALES          WARD
            20 RESEARCH       JONES
            30 SALES          MARTIN
            30 SALES          BLAKE
            10 ACCOUNTING     CLARK
            20 RESEARCH       SCOTT
            10 ACCOUNTING     KING
            30 SALES          TURNER
            20 RESEARCH       ADAMS
            30 SALES          JAMES
            20 RESEARCH       FORD
            10 ACCOUNTING     MILLER
            40 OPERATIONS
    15 rows selected.
    SQL> ed
    Wrote file afiedt.buf
      1  select d.deptno, d.dname, e.ename
      2* from dept d left outer join emp e on (d.deptno = e.deptno)
    SQL> /
        DEPTNO DNAME          ENAME
            20 RESEARCH       SMITH
            30 SALES          ALLEN
            30 SALES          WARD
            20 RESEARCH       JONES
            30 SALES          MARTIN
            30 SALES          BLAKE
            10 ACCOUNTING     CLARK
            20 RESEARCH       SCOTT
            10 ACCOUNTING     KING
            30 SALES          TURNER
            20 RESEARCH       ADAMS
            30 SALES          JAMES
            20 RESEARCH       FORD
            10 ACCOUNTING     MILLER
            40 OPERATIONS
    15 rows selected.
    SQL>

  • What is meaning of this ?

    what is the meaning of this regex ^[A-Z]*$ ?
    i guess it does not allow a char between A-Z at the starting. but whats next ?

    what is the meaning of this regex ^[A-Z]*$ ?
    i guess it does not allow a char between A-Z at the
    starting. but whats next ?Nope, you are way off.
    Here is a break down:
    ^(carat)
    This matches the beginning of the input.
    [A-Z]
    The brackets create a character class, and the contents describe the class.
    This class represents any upperclass letter from A to Z
    When this follows a character, a group, or a character class this symbol means
    'zero or more of the previous'. So, combined with the [A-Z] character class, it means
    zero or more uppercase letters from A to Z
    $
    This matches the end of the input.
    So, to put this all together, your expression will match any string that is
    either empty or only contains upper case letters from A to Z.

  • Whats the meaning when variables are enclosed by brackets

    Hi,
    Whats the meaning when variables are enclosed by brackets?
    like say
    lv_fieldname(25) TYPE c.
    lv_fieldname  = 'Material01'.
    what does it mean by saying
    ASSIGN (lv_fieldname) TO <fs_fieldname>.

    In many statement in ABAP, brackets mean that real "name" of operand (object) will be determined during runtime.
    Normally you would write
    data lv_fieldname(25) TYPE c VAUE 'SOME_FIELD'.
    assign lv_fieldname to <fs>.
    write: <fs>.
    This code is static . It means that when syntax check takes place, compilator looks for definition of lv_fieldname.
    It then assigns value of this field. The resuts is printintg on screen text "SOME_VALUE"
    Now you have similar code, but with brackets
    data: lv_fieldname(25) TYPE c VAUE 'SOME_FIELD',
             some_field type i vlaue 5.
    assign (lv_fieldname) to <fs>.
    write: <fs>.
    Here code is dynamic . It means that compilator doens't realy know the field name which will be assigned to <fs>.
    We told him that this will be determined during runtime ( by means of brackets ) and the real field name we want to assing, is stored in LV_FIELDNAME.
    This is equal to writing
    assign ('SOME_FIELD') to <fs>.
    When program starts, it is no LV_FIELDNAME which is assinged to <fs>, but the field which is stored in LV_FIELDNAME, namely 'SOME_FIELD'.
    So the printed result will be 5 .
    The same rule with dynamic operands applies i.e. in select statement
    data: my_table(5) type c value 'SPFLI'.
    select * from (my_table) ...
    There is no table in DB named my_table , but compilator "knows" that we don't what to fetch data from MY_TABLE, but we want table name to be determined dynamically (during runtime). So, it is  'SPFLI' table which here will be taken into account.
    One more note!
    Such dynamic statements are generic (doesn't constitute fixed code) and open new range of possiblities.
    Simple extending above example will create flexible (generic) program which can fetch data from different tables with one statement.
    parameters: pa_tabname(40) type c.
    select * from (pa_tabname) into ....
    Of course here you need also dynamic internal table as target area, but this is of no importance here.
    Hope this claryfies magic with brackets;)
    Regards
    Marcin

Maybe you are looking for

  • How do I access files on my network I have Windows and netgear stora

    I have a home network with Windows XP and Window 7 computers; and a Netgear Stora network hard drive. I want to be able to access files (photos, mostly) that are on the network from my iPad 2. How can I do this?

  • Unable to install SAPNW2004sSneakPreviewABAP

    I am trying to install SAPNW2004sSneakPreviewABAP while installing at 4 point i got the following error Could you please anybody can help me in this I am installing SneakPreviewABAP in WindowsXP with SP2 ERROR 2006-03-30 22:19:01 CJS-30129  Creating

  • Re: can't download or receive emails

    I cannot connect to wireless from my laptop. Checked what I downloaded after I received last email. Uninstalled microsoft silverlight. Now message reads Windows did not detect any networking hardware. Product ID (Personal information edited by modera

  • Cannot reload CS5 from the disc. Support advisor was not able to help.

    My CS5 was giving me error messages when opening. CS5 32 bit and would not load at all, but the 64bit was OK, but now is giving me message" cannot load the full program". I uninstalled CS5 32 and 64 bit and tried to load from the Adobe disc but it wo

  • PSE 10- Ou trouver cette ancienne version à installer (changement de PC)

    Bonsoir, j'ai photoshop elements 10 et 12 sur mon ordinateur qui fonctionnent parfaitement toutes les deux. Je viens ce soir d'enregistrer la version 10 (j'avais oublié de la faire). Mais quand je consulte mon compte je ne vois pas la version 10 d'en