Problem in order of the result

Hi,
I am facing an issue which seems to be confusing. I have a query from which i am spooling the results
SELECT SUPPLIER_ID || '-' <br>
FROM SUPPLIER <br>
WHERE SUPPLIER_CODE IN (SELECT SUPPLIER_CODE <br>
FROM SUPPLIER_ACCOUNT <br>
WHERE SUPPLIER_CODE IN ('5771','5790','6436','8389','416') <br>
AND COUNTRY_ID = 205) <br>
AND COUNTRY_ID = 205; <br>
Usually I get the results as
5678-<br>
5789-<br>
till dec 2006
But suddenly from Jan 2007 the order of the result is changed to
5789- <br>
5678-.<br>
There is also no change in data.
What could be the problem?
thanks in advance.

Sorry i made a mistake in my query
SELECT SUPPLIER_ID || '-'<br>
FROM SUPPLIER<br>
WHERE SUPPLIER_CODE IN (SELECT SUPPLIER_CODE<br>
FROM SUPPLIER_ACCOUNT<br>
WHERE SUPPLIER_CODE IN ('5771','5790','6436','8389','416')<br>
AND COUNTRY_ID = 205 <br>
AND ACCOUNT_NUMBER='891274')<br>
AND COUNTRY_ID = 205; <br>
Usually I get the results as <br>
5678-<br>
5789-<br>
till dec 2006 But suddenly from Jan 2007 the order of the result is changed to <br>
5789-<br>
5678-.<br>
There is also no change in data.<br>
Can plz help me why the order changes? <br>
Thanks for advace help

Similar Messages

  • Different order in the results

    I have a problem with order consistency in the data set on the screen vs. the sequence of records being selected one by one behind the screen.
    Say, in the first form I select certain "where clause" and several "order by". I pass parameters to the second form, compile query in runtime and start bringing records into the form for update, one by one. That's when the original first screen order is being messed up.
    Say, we have a group of records sorted by type, received_date. The set on the screen (user can only 2,3 and 4th columns) and in SQL*Plus would display:
    Rownum     Unique # Type     Date
    11     100 E     10/10/2005
    13     103 E     10/10/2005
    12     102 E     10/10/2005
    14     104 E     10/10/2005
    15     105 E     10/10/2005
    Records retrieved by the second screen via cursor, one by one, would appear in the following order:
    Rownum     Unique # Type     Date
    11     100 E     10/10/2005
    12     102 E     10/10/2005
    13     103 E     10/10/2005
    14     104 E     10/10/2005
    15     105 E     10/10/2005
    Basically, Oracle adds rownum as a last Order by to the customized Order By. Has anyone run into the similar problem and what did you do to fix it?

    And Rownum is an internal number that is applied AFTER the rows are sorted, so no matter how you order your records, Rownum will always start with 1.
    Does my result have something to do with subquery?
    SELECT rownum, unique#, report_type, received_date
    FROM table x
    WHERE condition blah-blah-blah
    AND unique# IN (subquery from table y)
    ORDER BY report_type ASC, received_date DESC
    My query above gives the result as follows:
    rownum unique# report_type received_date
    1     4630093     E     4/8/2005
    2     4630095     E     4/8/2005
    3     4630096     E     4/8/2005
    11     4629916     E     4/8/2005
    4     4630099     E     4/8/2005
    62     4631257     E     4/8/2005
    64     4631286     E     4/8/2005
    66     4631288     E     4/8/2005
    68     4631290     E     4/8/2005
    218     4630693     E     4/8/2005
    196     4630163     E     4/8/2005
    195     4630599     E     4/8/2005
    194     4630580     E     4/8/2005
    193     4631309     E     4/8/2005
    192     4631308     E     4/8/2005
    191     4631307     E     4/8/2005
    167     4630012     E     4/8/2005
    166     4630011     E     4/8/2005
    165     4629997     E     4/8/2005
    164     4629996     E     4/8/2005
    163     4629989     E     4/8/2005
    162     4630574     E     4/8/2005
    67     4631289     E     4/8/2005
    65     4631287     E     4/8/2005
    63     4631259     E     4/8/2005
    And then when retrieving one by one sorts by rownum (or unique #)

  • What order are find results in?

    When I use Spotlight and then select the "show in finder" option, what order
    are the results supposed to be in?  Alphabetical, you'd think, if "name" was
    selected.  But there seem to be many sublists in a large set of result, each
    restarting some sort of order every so many lines.  And why wouldn't clicking
    "name" again simply resort these?  It seems the only sort that affects the
    entire list in a predictable manner is sort by "type".  Have I inadvertently
    selected something wrong or am I missing something?  This makes spotlight
    much less useful to me.
    Anyone notice this?
    Mark

    Hi Ves,
      The AFCS dev guide mentions this in passing (3.1.5.1) but doesn't go into quite enough detail - we'll make a note to improve this for the next go-round.
      Essentially, all items for a given CollectionNode (from all of its nodes) are synched in the order that they were published, irrespective of which node they were published to. You can actually put a breakpoint down in MessageManager.receiveItems to watch this - all items for the entire collection are received in one big blob, then pushed onto an array, then sorted according to their timestamps and order, then sent as itemReceive up to the collectionNode.
      So yes, you could easily end up with an itemReceive for EVERYONE, followed by an itemReceive for HOSTS, then another one for EVERYONE. We make sure that they essentially come in the same order they did for people who were actually in the room at the time. For example in the chat pod, if I asked a question to the HOSTS node, which they answered on the public EVERYONE node, I'd want the items to be received in the right order, or the collective history wouldn't make sense.
    For separate CollectionNodes, their synchronization are kept separate (one at a time), since they're the result of individual subscribe() requests - the advice here is that if you have a series of items that have some dependency on order of arrival, you should make sure they're part of the same CollectionNode (which makes sense). If you need A to finish synching before B begins, put those items on different collectionNodes and call their subscribe() methods in that order. So, you can have it either way, depending on how you want to set it up.
    hope that helps
       nigel

  • Sum of the Results

    hello...we have some problem in summing out the results for the /BA1/K62EAD here based on the  /BA1/C62UEXPOS. When we execute the program, the results always showing a few lines of the same  /BA1/C62UEXPOS as below:
      /BA1/C62UEXPOS /BA1/K62EAD
    a  20
    a  30
    a  40
    b  30
    and the expected results should be a = 90 which is a sum but we got the results as below which break down to several records. what can we do on these? we have the code as below:
    SELECT /BA1/C20BPART
           /BA1/C62UEXPOS
           /BA1/K62EAD
           /BIC/OBJ_CURR
           FROM /1BA/HM_8QZO_400 INTO wa_rdldata
            FOR ALL ENTRIES IN i_resmort
                WHERE /BA1/CR0GROUP = group_id AND
                      /BA1/C62UEXPOS NE i_resmort-t_mort_ftid_dum.
       COLLECT wa_rdldata INTO i_rdldata.
       SORT i_rdldata.
    ENDSELECT.

    Hi,
    try the code and revert back for any prob
    SELECT /BA1/C20BPART
           /BA1/C62UEXPOS
           /BA1/K62EAD
           /BIC/OBJ_CURR
           FROM /1BA/HM_8QZO_400
         INTO table i_rdldata
            FOR ALL ENTRIES IN i_resmort
                WHERE /BA1/CR0GROUP = group_id AND
                      /BA1/C62UEXPOS NE i_resmort-t_mort_ftid_dum.
    loop at i_rdldata INTO wa_rdldata.
    COLLECT wa_rdldata INTO i_rdldata.
    endloop.
    Regards,
    Anirban

  • Order of fill results?

    Suppose we have a series of fills:
    service1.fill(list1);
    service2.fill(list2);
    service3.fill(list3);
    etc. Is there any guarantee about the order that the result
    or fault handlers on the clients will be called? Thanks.

    Calls executed in the same "flash frame" (i.e. in the same
    execution path) are guaranteed to be processed in the same order on
    the server no matter what channel you are using. RTMP provides an
    order guarantee in general since everything gets queued up in the
    order in which they are executed and put into the socket in that
    order and then processed synchronously (one at a time) on the
    server. There is a small risk of getting out of order calls when
    you are using HTTP based channels and you make the calls in
    separate flash frames. In this case, each call may not be batched
    into the same HTTP request... instead they are executed
    independently by the player and the browser may open up 2 or more
    sockets at the same time. That means there is not a 100% guarantee
    of the order of execution on the server.
    This is something we hope to address in future versions of
    LCDS - i.e. add an option to make sure things are received and
    processed in the right order on the server .

  • SQ02 - Issue on a infoset which doesn't order the results

    Hello to everyone,
    I'm experiencing some issues when creating a Infoset and implementing the relative query, as the results aren't ordered by the first field which is the Primary Key of the first table of the join which composes the Infoset. Here are the details:
    I've created a query on the following JOIN:
    DFKKKO >> ERDB >> ERCHC
    Plus, i've implemented some code to mess the query so that it returns some additional field with custom values.
    One of the target of this query is to have the output sorted by DFKKKO-OPBEL, which is the key of DFKKKO, but it seems that when I ask for a big amount of data, the output isn't sorted at all.
    Is there a way to ask the infoset via SQ02 or the query via SQ01 or some coding within the additional fields, etc.. to sort the output by certain fields? In this particular case, I'd like to order for the first output field which is the key of the first table of the join.
    Thank you very much in advance.
    Best regards,
    Claudio

    Hello Arbind,
    thanks for your quick reply, i'll be start testing it immediately, but I've seen that apparently this method sorts the extraction after it is done. Even though it could appear strange, I should keep a progressive number while elaborating each row of the selection, so for example I'll count in this way:
    record 1 - counter 1
    record 2 - counter 2
    record n - counter n.
    Actually, my problem with sort was that record 1 has the key 1, record 2 has the key 2018, record 3 has the key 58, so the counter 2 points to a wrong record.
    Your solution is really helpful, but do you know actually if I can put a sort or order by directly in the main selection by indicating something somewhere?
    If it isn't possible, i'll start thinking of an alternative solution for the counter problem (which is a counter of the billing rows in a document, instead of a simple counter).
    Thanks also to Christian for the answer!
    Thank you very much.
    Kind regards,
    Claudio
    Edited by: Claudio CPU on Feb 22, 2011 12:14 PM

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • Having downloaded and installed the latest Maverick Ios I now have a problem with mail.All my mailboxes were in alphabetical order now they are arrange randomly under my mail account, sync does not rearrange them whilst the order in the ISP account is in

    I have downloaded Maverick 10.9 and installed , now my mailboxes in mail are randomly arranged as opossed to being in alphebetical order from A at the top to Z at the bottom how do you rearrenge the mailboxes in an alphbetical order.
    Sync with my provider Gmail does not rearrange them on my Imac

    Thanks for that .
    My actual problem I may not have made very clear - sorry.
    i.e.
    [email protected]
    AA insurance
    Xero
    apple
    building
    insurance
    etc.
    Shows the way the mailboxes are listed in the mail program under any particular provider, in my case I have three mail provider accounts with mail moved from the inbox to the appropraite mailbox eg [email protected] , Xero - where the incomeing mail is filed.
    My problem is to arrange these mailboxes/folders in an alphabetical order under the [email protected] account

  • Problem with the result of multiple queries in Web Intelligence (BO XI R2)

    We have a problem with Web Intelligence reports. Behavior of the results is like if we selected the function Count in Designer the properties indicators. Same queries separated one for one report give correct results and together 7 queries in one report give correct results only for the first query and for others (6 others) same results for each date (if report is monthly) or the same result for each hour (if the result is daily) for all Queues tested (other which were not tested have result 0). Even the function Sum inserted into the report structure behaves weird u2013 we have the same result as in the filed (it is a copy of that result, not a sum). We tested queries together in SQL Developer and they give correct results, while in BO big query which contains script from Query 3, Query 2  and Query 1 cannot be completely executed (it executes without end).
    We use Business Objects XI R2 SP3.
    Thanks in advance.

    Hi Peter,
    I guess it is the problem due to the merged dimension and different granurality level in the BO queries. From the document properties uncheck the option of auto-merge common dimension objects or manually unmerge all the common dimensions
    than give it a try.
    I guess this would solve your problem. If not can you provide more query details like what objects you have used in the query.

  • How to display the results in order by based on search value

    Hi All,
    how to display the results in the below order.
    CREATE TABLE TEST( SONGID  NUMBER, TITLE   VARCHAR2(200))
    INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
    INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
    INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');     
    INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
    INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
    SELECT *FROM  TEST WHERE INSTR (TITLE, 'MADONNA') > 0
    output:
    SONGID     TITLE
    10     AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
    11     CICCONE, MADONNA (CA)
    12     DALLIN, MADONNA LOUISE/STOCK
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    16     MIRWAIS AHMADZAI, MADONNA
    17     MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
    18     MADONNA (CA),CICCONE
    Expected output :
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    18     MADONNA (CA),CICCONE
    ...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
    Please let me know is it possible to display the results in that order.
    Regards,
    Rajasekhar

    This may be a bit more accurate:
    SQL> SELECT *
      2  FROM   TEST
      3  WHERE  INSTR (TITLE, 'MADONNA') > 0
      4  ORDER  BY INSTR (TITLE, 'MADONNA')
      5           ,TITLE
      6  ;
                  SONGID TITLE
                      13 MADONNA
                      14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
                      15 MADONNA (CA)
                      18 MADONNA (CA),CICCONE
                      12 DALLIN, MADONNA LOUISE/STOCK
                      11 CICCONE, MADONNA (CA)
                      17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
                      16 MIRWAIS AHMADZAI, MADONNA
                      10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)

  • I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a

    I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a second copy, but this is identic with the one I already had in Lightroom, and I can see noe result of the clone process.

    At the moment I would say it is uncertain whether Acrobat is completely ignoring the change, or whether the changes you are making aren't affecting the ink density. I have a suggestion for a test you could make to see which is the case.
    When editing in Photoshop just add a box or mark on the image, for your tests.
    - If this box does not appear in Acrobat, you know Acrobat is not seeing the edit
    - If this box does appear in Acrobat, you know the problem is that your tool for changing ink densities is not taking effect.

  • Problem with the order of the columns of a ALV

    I have a problem with a ALV, variants we keep this ALV does not record the order of the columns
    Thank you

    I suppose you want to change the sequence of columns of a ALV. If you can change it by clicking 'settings' of right-top corner of ALV. After done you can save the new settings into a new. If you find some abnormal behaviour, please check the settings by WDA component "wd_analyze_config_user".
    FYI.
    [http://help.sap.com/saphelp_nw70/helpdata/en/32/f26f73d81e11d1a26f0000e8a5a614/frameset.htm]

  • Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc. This is a new problem and was not the case before.

    Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
    This is a new problem and was not the case before.

    Works perfectly fine for me with the latest Reader version (11.0.09).
    You write that it worked "before"; before what?  An update?  Update from what version to what version?

  • Txt output problem,cannot order the output

    Hi,
    I'm working with forms and reports 6i, and I have a problem when generating the .txt output.
    My report consists in some columns (database-scalar) from the main query and in some columns(formula).
    What I'm trying to do is to mix the order of columns (database-scalar) and columns(formula),but
    I can't do it. The columns(formula) are always in the end of the output...
    I've put the right order in the report editor,but It only works to put the order of the columns (database-scalar) .
    Example
    query
    select a,b,c from..where...
    formula colum: desc_a,desc_b
    The desired output
    a desc_a b desc_b c
    The output I get
    a b c desc_a desc_b
    Thanks in advance

    Solved,reading anothers posts found the error.
    Just need to play with the "break order" and separating in groups the formula column and the database-scalar colum.

  • Hi, I have problems in ordering book from iPhoto. It says "problems in getting contact with Apple Online Store" I have changed password on my Apple ID - could that be the problem ??

    Hi, I have problems in ordering book from iPhoto. It says "problems in getting contact with Apple Online Store" I have changed password on my Apple ID - could that be the problem ??

    Some additional efforts you can try:
    Go to the System/Sharing preference pane and make sure Remote Apple Events is checked.
    If it is, uncheck it and then recheck and try ordering again.
    OT

Maybe you are looking for

  • Windows 8.1 Not Seeing Ubuntu Server

    I have been running a file server with Ubuntu Server 14.04.1 as the OS and Samba 4.1.6 to share the files. I was able to connect to the server and access all of its drives from both my desktop and laptop running Windows 7. I upgraded my laptop to Win

  • Inserting the "enter" character in a String

    Hi, I would like to insert a "enter" character in a String to create a new line. something like this String test = "teste" + char(10) + "teste"; Thanks in advanced Ricardo

  • What is a Business Process?

    What is a Business Process? According to me it Depends upon client Requirements. ir Inq-Qt-Order-Del-Billing. Correct me If I am wrong.

  • Bugreport: creating a mobile Listview region results in error

    Hi, i'm on apex.oracle.com creating a mobile application. When creating a new region of type report -> Listview it results in an error if the query is too big (or returns too many columns). The error is: Error during rendering of region "Add Javascri

  • MobileMe publishing issue

    Hello there, my Aperture is publishing my galleries at homepage.mac.com/membername instead of the new MobileMe Gallery address (gallery.me.com/membername). Any ideas of why and how to fix it? In Aperture preferences there's no option to switch betwee