SELECT without ORDER BY - LIFO or FIFO as result?

Friends, I have a Loop that it inserts in a table that does not possess indice. When I to apply one SELECT, the result will be always the same? This sequencia is important for me. SELECT without ORDER BY functions as a LIFO (stack - Last In, First Out) or FIFO (list/line - First In, First Out)?
Example:
declare
x number := 1;
Loop
exit when (x = 11);
insert into table1 (field1) values (x);
x: = x + 1;
end Loop;
When I will be to apply SELECT in the table ' table1 ' without ODER BY, which result that always will be returned?
I) 1, 2, 3, ..., 10?
or will be able to come in another order?
II) 10, ..., 3, 2, 1
thanks

Oracle does not guarantee the rows order when ORDER BY is not specified.
From Oracle documentation :
order_by_clause
Use the ORDER BY clause to order rows returned by the statement. Without an order_by_clause, no guarantee exists that the same query executed more than once will retrieve rows in the same order.

Similar Messages

  • Oracle 10G gives in sorted order without order by ,in 11g it is not.

    we are facing a strange problem.
    we have M Views on which we perform select operation ,we put joins of M Views and get the results by select operation , the results was in sorted order (asc) and we were not using any order by clause in the select query , this was in oracle 10G.
    The compelte schema where these M views are and also the underneath tables are now migrated to oracle 11g using import/export option.
    Now the queries which was giving the result set in sorted order (asc), are not given the result set in sorted order anymore. it is in different order but I think at always return the same order not asc or desc but an specific random order .
    we can not change the query as of now as there are 1000+ and each query would require a order by statement .
    Do we have any parameters which can be change , so that we can force oracle to use a different plan so that it gives result in order ?
    the select queries are very simple ones not complicated no extra function or group by is used in most of the queries.
    Please suggest possible solutions . Thanks much.

    Su**** wrote:
    Please guide me how to go to this doc link ,i am newbi, and do not how to go to this link.
    MOS Doc 345048.1 ('Group By' Does Not Guarantee a Sort Without Order By Clause In 10g and Above)
    Go to http://support.oracle.com, log in to My Oracle Support, and search for 345048.1 If you don't have a My Oracle Support account, you'll need to contact whoever manages your company's Oracle support and ask them to create an account for you.
    Basically, no version of Oracle has ever guaranteed the order of results if you don't specify an ORDER BY clause. In 10g, the only algorithm that was available to implement a GROUP BY happened to sort the results as a side effect. 11g introduced a new algorithm for grouping results that is more efficient and does not have the side effect of ordering the results. Most likely, your query plans have changed to use the more efficient grouping algorithm.
    If you want the results to be sorted, you should add an appropriate ORDER BY clause. If you go through the MOS document, there will also be suggestions for ways that you can disable the new grouping algorithm though I would not recommend that.
    Justin

  • You Cannot select assembly order for deletion error with BAPI_SALESORDER_CAHNGE after EHP6 upgrade

    Hi All,
    We are using Z transaction to update Wbs element data to sales order line item through BAPI_SALESORDER_CHANGE. After EHP6 upgrade while updating Wbs element data to old sales orders(Created before EHP6 upgrade)  we are getting  You cannot select assembly order < order number> for deletion (V1 748) error in BAPI return table, For multiple Sales order run.
    But if  we run the same order individually it is getting processed successfully. W e are passing the same values in individual and multiple case.
    We debugged the BAPI and found one more error related to Authorization, But BAPI return table is giving different error (V1 748)message. Please help us in finding the issue.

    Hi Sujay..
    Please check.
    http://help.sap.com/saphelp_47x200/helpdata/en/b7/58c4c87e0811d2b66a0000e82d8bd1/frameset.htm

  • Query:Dispatch selective process orders from a list available

    Hi all,
    we have a requirement in PP module to dispatch only selective process orders(based on a User criteria) from within a Zprogram.To achieve the same,
    1)we have tried to do a BDC of transaction code CM25.But the line selection of the required order to be dispatched is not captured in recording.
    2)Also,we have tried using the CM40 transaction(mass dispatch) and tried to control the orders dispatch through a user exit.This seems to working fine when CM40 is run independently.but the user exit does not get triggered when CM40 is called (using BDC)from within a Zprogram.
    Can someone please throw some light/suggest any alternative for achieving the same i.e dispatch a selected process order from a list of available orders.

    Hi all,
    we have a requirement in PP module to dispatch only selective process orders(based on a User criteria) from within a Zprogram.To achieve the same,
    1)we have tried to do a BDC of transaction code CM25.But the line selection of the required order to be dispatched is not captured in recording.
    2)Also,we have tried using the CM40 transaction(mass dispatch) and tried to control the orders dispatch through a user exit.This seems to working fine when CM40 is run independently.but the user exit does not get triggered when CM40 is called (using BDC)from within a Zprogram.
    Can someone please throw some light/suggest any alternative for achieving the same i.e dispatch a selected process order from a list of available orders.

  • Want to select the Order type automatically when creating production order

    Hi Gurus,
    Please help to select the order type automatically while creting the production order..??
    Please what configuration settings are avialble to make this happen to me.
    THank you in advance.
    Naveen.

    Naveen,
    First priority is the order type defined in the Production schedulling profile(OPKP), assigned to that particular material in workscheduling view. If this is not maintained then,
    Second priority is configuration at MRP Group parameters in transaction in OPPR, this MRP Group if assingned to Material master MRP1 view.
    Third priority is Configuration at Plant level parameters in transaction OPPQ, this defines the order type when convert planned order to Production/Process order.
    Regards,
    Prasobh
    Edited by: Prasobh Karunakaran on May 28, 2009 8:49 PM..added MRP group paramters also

  • Selecting PM order according to status in report

    hello
    we are writing a report in which we need to select PM orders according to several parameters, one of which is a specific User Status.
    I see that there are many tables containing statuses, like TJ20, TJ30, and plenty of others but I cannot find a reference field to connect the status to the PM order.
    meaning: TJ30T for instance has a field TXT04 which contains the user status but, no field for the PM order to find the actual order status to compare.
    how can I connect a specific order to a table containing user status?
    thanks
    Alisa

    Alisa,
    From AUFK table you need to fetch the value for OBJNR for the order number(AUFNR), and using OBJNR value in JEST table you can fetch the status which are active and Inactive.
    Text and status details are available in TJ02.
    Regards,
    Prasobh

  • GR55 reports - How to include multiple selection of Orders in input screen

    Dear Experts
    We r stuck at the simple step in report writer, by which I could select multiple orders in selection screen.
    I am using report liabrary 7KOJ and have used a copy of Std report (7KOJ_001) making a Z one.
    I have comipled everything in this report with many formule to get the required output.
    Now I want to execute thsi report, but I can execute it "only" for one order in selection.
    I tried using another set ( same name) making it repeat at selection scren, but it does not work.
    Is it possible to use multiple orders as selection criterion in this report library  7KOJ?
    Pls guide me if I can use any other liabrary in which I can get
    1. Actual line item costs
    2. Actual line item Qty
    3. Target costs per line item
    4. Target Qty per line iem.
    I am using this particular liabrary becuase I want to get following coloums  in my report with an additional couple of coloumns which I had make some formulae.
    1. Actual cost ( At the time of any line item posting in an order)
    2. Variance ( target Qty valued at actual costs) - * I know that is something strange when you calculate variances, but this is how the requirement is , to calculate variance)
    Pls help. Thanks in advance, as always..
    Regards
    Dhiraj

    Please proceed as follows.  By the way you were doing the right thing just that you did not create the sets correctly.
    1. Create two value variables using transaction code GS11.  For example: OR-AUFN and OR-AUF2  and give default value for both as zero.  The table to use for both is KKBC and the field name as AUFNR
    OR-AUFN - From Order
    OR-AUF2 - To Order
    2. Create a basic set.  For example: OR-S-AUFNR in the basic set, under from value click on variable tab and enter the first variable (OR-AUFN) and then under to value, again click on variable and select the second variable (OR-AUF2) and save.
    3. Now change the report in transaction code GR32. Click on General Data Selection and enter the set you've just created above.  Make sure no other set for Order exists besides the new one and save your report.
    Alternatively, you could also create two value variables for Order Item Number using table KKBC and field POSNR as follows:
    7K-POS1 =  Item from  as description and give default value as 0.
    7K-POS2   =   Item To as description and give default value as 1000
    Next, create a basic set and specify the above two variables.  Change your report and include this set under General Data Selection.  In this scenario, leave your original order set as well.
    That should solve your problem.  Refer back for any further clarification.  By the way, everything I wrote here was tested fully and is working.
    Regards,
    Elias
    Edited by: Elias Akorli on May 5, 2010 4:03 PM
    Edited by: Elias Akorli on May 5, 2010 4:11 PM

  • How to code for DSynamci Selections without using a logical database?

    In a custom program, how to generate dynamic selections without specifying a LDB int he attributes.
    Thanks,
    Ven

    This does not relate to the dynamic selections I am looking at.
    If you look at FBL3N or FBL1N, there will be a Dynamic Selections button which gets in as part of the LDB associated with it.
    I want to know if there is a simpler way of putting this in a custom program without reference to the LDB.
    Thanks,
    Ven

  • Create outbound delivery without order reference but with order data

    I am interested in creating an outbound delivery without order reference...but include data from a sales order that has already been PGI'd. Has anyone come up against this and found a solution?

    There is a button on VL01N transaction saying W/o Order Reference...
    Click on that and then enter the shipping type, delivery type... and in the main screen enter the data that u have in ur order...
    try that.... all the best
    reward points if helpful...

  • Error:(in tcodeVA02)"You cannot select assembly order 16600192 for deletion

    when i am trying to delete one line item from sales order using VA02 tcode its throwing error "You cannot select assembly order 16600192 for deletion".
    could you tell me please what might be the reason and how to resolve this issue.
    waiting for your response.
    thanks,
    aritra
    Message was edited by: Aritra Samanta
    Message was edited by: Aritra Samanta

    Let me ask you this: Is the assembly order 16600192 your VA02 order number? If not, your sales order item might have created an assembly order (with this number). Depending on its status, you may not be able to delete the assembly order and therefore the sales order item deletion is not possible.
    Verify the assembly order status.
    Good luck!

  • BAPI to Create Outbound Delivery Without Order Reference

    Hi everyone
    I need to create <b>outbound delivery without order reference</b> ( like i create manual in VL01NO) . Can anyone help me to find this bapi or function?
    Thanks & regards
       David

    Hi,
    Please check this BAPI.
    BAPI_DELIVERYFREE_PROXY_CREATE
    BAPI_DELIVERYPROCESSING_EXEC
    Regards,
    Ferry Lianto

  • Field selection for order

    Hi all
    Can I know use of custumization trxn OIXW and OIRS (Field selection for order and sub order data field.)
    My assumption was that when I make sequence chane in OIXW then tht will reflect in IW38/IW39.
    but it is not so.
    Basically I want to araange column sequence in Iw38 as per my requirement. instead of creating layout is there
    any other procedure ?
    Regards,
    Prasad

    Hi,
    Any changes you make in field selection through OIXW or OIRS will reflect in IW38/IW39 as a global default variant.Any user variant created as default variant will have priority over this.So make it sure that this default variant is Protected one so that no one can chnage as you want this to be global variant.
    regds,
    atul

  • ADD to a selection without deselecting existing selections?

    I've searched for a while and I haven't found anything about this...I can't fathom that I'm the only one who's ever wanted to know this, but oh well...
    1.) You've got a large clustered group of 100 small shapes, and you've selected the 2/3 of them on the left.
    2.) Drag a selection over the 2/3 on the right (with 1/3 overlap in the middle)
    3.) You have now selected the previously unselected shapes, but you've also deselected the 1/3 in the middle that you already had selected before.
    Is there a way to simply ADD to a selection without deselecting any overlap?
    (I am not looking for alternate solutions, I know I can select things individually/etc)

    As I said in the last line of the original post, I'm not looking for alternative solutions. I am very much aware that you can select things individually.
    So I'm assuming the answer to this question is "no"?
    It would be pretty helpful if you could do something like this in Illustrator, just as you can with AutoCad/Vectorworks/Rhino, and essentially every other vector graphics program.
    I realize from my example it doesn't seem like that big of a deal, but it can be really annoying in some particular instances. I won't contrive an example, you'll just have to take my word for it. It would be nice if they could add a Ctrl+Shift (or something) function that would do this in CS6.

  • Error simulating Part 1 in (j1iex) without order reference.

    Dear All
                 Error while simulating part 1 for sto in j1iex without order reference. "PLA -AT2 amount (30.09.08)is greater than available amount" please resolve this pblm..
    Regards
    Senthil

    Can you please ensure that you enter the posting date before you save
    the transaction. Also please ensure that the excise invoice date is not
    later than the GR date
    Kindly refer to the revised note 926707.
    Please maintain the text for Message class 8I, message number 659 as
      "Excise Invoice Date Greater than GR Posting Date."

  • Define Field Selection - PM Order

    Hi,
    We have Order types PM01 and PM02, processing for Planning Plants 1000,2000, 3000 and 4000.
    Here for Planning Plant 1000,we have set up Equipment field, as mandatory for both Order type PM01 and PM02. This was set up through, Field Selection for Order Header Data, through Influencing Order type PM01 and PM02 and made Equipment as a mandatory field.
    As this influencing field as made as per Order type PM01 and PM02, for Equipment as mandatory this is applicable for all Plants 1000,2000, 3000 and 4000.
    Now we no need this Equipment as mandatory field in Order type PM01 and PM02 for Plant 4000. For only this requirement, can we make the influencing field for both Order type PM01 and PM02, for only Planning Plant 4000, not  Equipment as a mandatory field.
    This must not disturb the existing Equipment mandatory field for Order types PM01 and PM02 for other Plants 1000, 2000 and 3000.
    Kindly provide your suggestions.
    Raja.

    Kutti Raja,
    If you want to do this for all the order Types for Planning Plant 4000, you may achieve this by following Steps:
    1. Go to Field Selection for Order Header Data and Reference Object (Plant Maintenance and Customer Service --> Maintenance and Service Processing --> Maintenance and Service Orders --> Define Field Selection for Order Header Data (PM))
    2. Click on Influencing button and Double click on "Planning Plant".
    3. Enter "4000" in Contents Fields and Select Radio Button "Input" instead of "Required" next to Equipment field.
    For Rest of the Planning Plants Equipment will remain to be mandatory but for 4000 and all order Types, it will be an input field but not as Mandatory.
    Hope this helps.
    Chin2.

Maybe you are looking for

  • Downloading Lumia Amber Update

    I recently had to do a hard reset on my Nokia Lumia 928, and thus lost all of Nokia's updates as of June 1st, 2013, which also includes the Lumia Amber update. It says in settings>phone update that I'm up to date, but I know that I most certainly am

  • HT201209 How can I use app which I have received as gift.

    I have gifted a friend a application. But he has still not received any message or link regarding it. How can he receive and use tht app.

  • 1.0.1 & 1.0.2 and still stopping music while surfing & slow email sending

    I know this is an old issue, but are others still seeing this with the music after two updates? I will have a full set of ATT bars, on WiFi and my reply emails launch only after a minute or more. Is it possible to see the email launch progress? Thank

  • How to determine structure of an Internal table dynamically ?

    Dear Friends, On the selection screen.. I have a parameter to pass a structure (eg. E1MARAM ) in to program . Now the challenge is  to create an internal table with the structure that is passed from the selection screen(here eg.E1MARAM) Please help m

  • What Happened to my PPC Code?

    I have a huge file archive that's been sitting on a spare partition on the MacPro while I get the frankenboxG4 music table sorted. That's all done and now a whole bunch of my applications and files have lost their file type/associations. Boooo! I hav