Tables of View Joined in Wrong Order When View Joined to Other Tables

I have the following view:
select
     distinct
     'PKG' item_type_code,
     msibk.organization_id,
     msibk.inventory_item_id
from
     mtl_system_items_b_kfv msibk,
     mtl_item_categories mic,
     mtl_default_category_sets mdcs,
     mtl_categories_b_kfv mcbk
where
     msibk.organization_id = mic.organization_id
     and msibk.inventory_item_id = mic.inventory_item_id
     and mic.category_set_id = mdcs.category_set_id
     --1 Inventory (Lookup = MTL_FUNCTIONAL_AREAS)
     and mdcs.functional_area_id = 1
     and mic.category_id = mcbk.category_id
     and mcbk.segment1 = 'EXP'
     and mcbk.segment2 in ( 'PACKAGING' )When I access the columns like this:
select
from
     xxcus_mtl_sys_item_types_v
where
     organization_id = :1
     and inventory_item_id = :2
     and item_type_code = :3It correctly accesses MTL_SYSTEM_ITEMS_B second in the explain plan and everything is good.
But when it is part of a join, it accesses MTL_SYSTEM_ITEMS_B last in the explain plan and has performance issues.
select
     msi.segment1
from
     xxcus_mtl_sys_item_types_v x,
     mtl_system_items msi
where
     msi.organization_id = x.organization_id
     and msi.inventory_item_id = x.inventory_item_id
     and x.item_type_code = 'PAK'Any ideas why the view tables are getting joined incorrectly when the view is joined with another table?
Thanks,
Kurz

The query I posted for the view is just an excerpt. It is several nearly identical queries with UNION ALL between them. I get the same results when I have only one query in the view.
Here is the explain plan for the first query:
| Id  | Operation                          | Name                         | Rows  | Bytes | Cost (%CPU)|
|   0 | SELECT STATEMENT                   |                              |     5 |   160 |    25  (20)|
|   1 |  VIEW                              | XXCUS_MTL_SYS_ITEM_TYPES_V   |     5 |   160 |    25  (20)|
|   2 |   UNION-ALL                        |                              |       |       |            |
|   3 |    SORT UNIQUE NOSORT              |                              |     1 |    71 |     5  (20)|
|*  4 |     FILTER                         |                              |       |       |            |
|   5 |      NESTED LOOPS                  |                              |     1 |    71 |     4   (0)|
|   6 |       NESTED LOOPS                 |                              |     1 |    36 |     3   (0)|
|   7 |        NESTED LOOPS                |                              |     1 |    17 |     1   (0)|
|   8 |         TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|*  9 |          INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 10 |         INDEX UNIQUE SCAN          | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|* 11 |        INDEX RANGE SCAN            | MTL_ITEM_CATEGORIES_U1       |     1 |    19 |     2   (0)|
|* 12 |       TABLE ACCESS BY INDEX ROWID  | MTL_CATEGORIES_B             |     1 |    35 |     1   (0)|
|* 13 |        INDEX UNIQUE SCAN           | MTL_CATEGORIES_B_U1          |     1 |       |     0   (0)|
|  14 |    SORT UNIQUE NOSORT              |                              |     1 |    63 |     5  (20)|
|* 15 |     FILTER                         |                              |       |       |            |
|  16 |      NESTED LOOPS                  |                              |     1 |    63 |     4   (0)|
|  17 |       NESTED LOOPS                 |                              |     1 |    36 |     3   (0)|
|  18 |        NESTED LOOPS                |                              |     1 |    17 |     1   (0)|
|  19 |         TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 20 |          INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 21 |         INDEX UNIQUE SCAN          | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|* 22 |        INDEX RANGE SCAN            | MTL_ITEM_CATEGORIES_U1       |     1 |    19 |     2   (0)|
|* 23 |       TABLE ACCESS BY INDEX ROWID  | MTL_CATEGORIES_B             |     1 |    27 |     1   (0)|
|* 24 |        INDEX UNIQUE SCAN           | MTL_CATEGORIES_B_U1          |     1 |       |     0   (0)|
|  25 |    SORT UNIQUE NOSORT              |                              |     1 |    71 |     5  (20)|
|* 26 |     FILTER                         |                              |       |       |            |
|  27 |      NESTED LOOPS                  |                              |     1 |    71 |     4   (0)|
|  28 |       NESTED LOOPS                 |                              |     1 |    36 |     3   (0)|
|  29 |        NESTED LOOPS                |                              |     1 |    17 |     1   (0)|
|  30 |         TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 31 |          INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 32 |         INDEX UNIQUE SCAN          | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|* 33 |        INDEX RANGE SCAN            | MTL_ITEM_CATEGORIES_U1       |     1 |    19 |     2   (0)|
|* 34 |       TABLE ACCESS BY INDEX ROWID  | MTL_CATEGORIES_B             |     1 |    35 |     1   (0)|
|* 35 |        INDEX UNIQUE SCAN           | MTL_CATEGORIES_B_U1          |     1 |       |     0   (0)|
|  36 |    SORT UNIQUE NOSORT              |                              |     1 |    71 |     5  (20)|
|* 37 |     FILTER                         |                              |       |       |            |
|  38 |      NESTED LOOPS                  |                              |     1 |    71 |     4   (0)|
|  39 |       NESTED LOOPS                 |                              |     1 |    36 |     3   (0)|
|  40 |        NESTED LOOPS                |                              |     1 |    17 |     1   (0)|
|  41 |         TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 42 |          INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 43 |         INDEX UNIQUE SCAN          | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|* 44 |        INDEX RANGE SCAN            | MTL_ITEM_CATEGORIES_U1       |     1 |    19 |     2   (0)|
|* 45 |       TABLE ACCESS BY INDEX ROWID  | MTL_CATEGORIES_B             |     1 |    35 |     1   (0)|
|* 46 |        INDEX UNIQUE SCAN           | MTL_CATEGORIES_B_U1          |     1 |       |     0   (0)|
|  47 |    SORT UNIQUE NOSORT              |                              |     1 |    71 |     5  (20)|
|* 48 |     FILTER                         |                              |       |       |            |
|  49 |      NESTED LOOPS                  |                              |     1 |    71 |     4   (0)|
|  50 |       NESTED LOOPS                 |                              |     1 |    36 |     3   (0)|
|  51 |        NESTED LOOPS                |                              |     1 |    17 |     1   (0)|
|  52 |         TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 53 |          INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 54 |         INDEX UNIQUE SCAN          | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|* 55 |        INDEX RANGE SCAN            | MTL_ITEM_CATEGORIES_U1       |     1 |    19 |     2   (0)|
|* 56 |       TABLE ACCESS BY INDEX ROWID  | MTL_CATEGORIES_B             |     1 |    35 |     1   (0)|
|* 57 |        INDEX UNIQUE SCAN           | MTL_CATEGORIES_B_U1          |     1 |       |     0   (0)|
--------------------------------------------------------------------------------------------------------Here is the explain plan for the second query:
| Id  | Operation                           | Name                         | Rows  | Bytes | Cost (%CPU)|
|   0 | SELECT STATEMENT                    |                              |     5 |   240 |    10  (50)|
|   1 |  NESTED LOOPS                       |                              |     5 |   240 |    10  (50)|
|   2 |   VIEW                              | XXCUS_MTL_SYS_ITEM_TYPES_V   |     5 |   160 |     5 (100)|
|   3 |    UNION-ALL                        |                              |       |       |            |
|   4 |     HASH UNIQUE                     |                              |     1 |    71 |     1 (100)|
|*  5 |      FILTER                         |                              |       |       |            |
|   6 |       NESTED LOOPS                  |                              |    17 |  1207 |    77   (0)|
|   7 |        NESTED LOOPS                 |                              |    16 |   992 |    77   (0)|
|   8 |         NESTED LOOPS                |                              |     1 |    43 |     7   (0)|
|   9 |          TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 10 |           INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 11 |          TABLE ACCESS BY INDEX ROWID| MTL_CATEGORIES_B             |     1 |    35 |     6   (0)|
|* 12 |           INDEX RANGE SCAN          | MTL_CATEGORIES_B_N1          |    44 |       |     2   (0)|
|* 13 |         TABLE ACCESS BY INDEX ROWID | MTL_ITEM_CATEGORIES          |    49 |   931 |    70   (0)|
|* 14 |          INDEX RANGE SCAN           | MTL_ITEM_CATEGORIES_N3       |   441 |       |     4   (0)|
|* 15 |        INDEX UNIQUE SCAN            | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|  16 |     HASH UNIQUE                     |                              |     1 |    63 |     1 (100)|
|* 17 |      FILTER                         |                              |       |       |            |
|  18 |       NESTED LOOPS                  |                              |  2158 |   132K|   250   (1)|
|  19 |        NESTED LOOPS                 |                              |  2134 |   112K|   249   (0)|
|  20 |         NESTED LOOPS                |                              |    44 |  1540 |     7   (0)|
|  21 |          TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 22 |           INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|  23 |          TABLE ACCESS BY INDEX ROWID| MTL_CATEGORIES_B             |    44 |  1188 |     6   (0)|
|* 24 |           INDEX RANGE SCAN          | MTL_CATEGORIES_B_N1          |    44 |       |     2   (0)|
|* 25 |         TABLE ACCESS BY INDEX ROWID | MTL_ITEM_CATEGORIES          |    49 |   931 |    70   (0)|
|* 26 |          INDEX RANGE SCAN           | MTL_ITEM_CATEGORIES_N3       |   441 |       |     4   (0)|
|* 27 |        INDEX UNIQUE SCAN            | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|  28 |     HASH UNIQUE                     |                              |     1 |    71 |     1 (100)|
|* 29 |      FILTER                         |                              |       |       |            |
|  30 |       NESTED LOOPS                  |                              |    33 |  2343 |    77   (0)|
|  31 |        NESTED LOOPS                 |                              |    33 |  2046 |    77   (0)|
|  32 |         NESTED LOOPS                |                              |     1 |    43 |     7   (0)|
|  33 |          TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 34 |           INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 35 |          TABLE ACCESS BY INDEX ROWID| MTL_CATEGORIES_B             |     1 |    35 |     6   (0)|
|* 36 |           INDEX RANGE SCAN          | MTL_CATEGORIES_B_N1          |    44 |       |     2   (0)|
|* 37 |         TABLE ACCESS BY INDEX ROWID | MTL_ITEM_CATEGORIES          |    49 |   931 |    70   (0)|
|* 38 |          INDEX RANGE SCAN           | MTL_ITEM_CATEGORIES_N3       |   441 |       |     4   (0)|
|* 39 |        INDEX UNIQUE SCAN            | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|  40 |     HASH UNIQUE                     |                              |     1 |    71 |     1 (100)|
|* 41 |      FILTER                         |                              |       |       |            |
|  42 |       NESTED LOOPS                  |                              |    17 |  1207 |    77   (0)|
|  43 |        NESTED LOOPS                 |                              |    16 |   992 |    77   (0)|
|  44 |         NESTED LOOPS                |                              |     1 |    43 |     7   (0)|
|  45 |          TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 46 |           INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 47 |          TABLE ACCESS BY INDEX ROWID| MTL_CATEGORIES_B             |     1 |    35 |     6   (0)|
|* 48 |           INDEX RANGE SCAN          | MTL_CATEGORIES_B_N1          |    44 |       |     2   (0)|
|* 49 |         TABLE ACCESS BY INDEX ROWID | MTL_ITEM_CATEGORIES          |    49 |   931 |    70   (0)|
|* 50 |          INDEX RANGE SCAN           | MTL_ITEM_CATEGORIES_N3       |   441 |       |     4   (0)|
|* 51 |        INDEX UNIQUE SCAN            | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|  52 |     HASH UNIQUE                     |                              |     1 |    71 |     1 (100)|
|* 53 |      FILTER                         |                              |       |       |            |
|  54 |       NESTED LOOPS                  |                              |    17 |  1207 |    77   (0)|
|  55 |        NESTED LOOPS                 |                              |    16 |   992 |    77   (0)|
|  56 |         NESTED LOOPS                |                              |     1 |    43 |     7   (0)|
|  57 |          TABLE ACCESS BY INDEX ROWID| MTL_DEFAULT_CATEGORY_SETS    |     1 |     8 |     1   (0)|
|* 58 |           INDEX UNIQUE SCAN         | MTL_DEFAULT_CATEGORY_SETS_U1 |     1 |       |     0   (0)|
|* 59 |          TABLE ACCESS BY INDEX ROWID| MTL_CATEGORIES_B             |     1 |    35 |     6   (0)|
|* 60 |           INDEX RANGE SCAN          | MTL_CATEGORIES_B_N1          |    44 |       |     2   (0)|
|* 61 |         TABLE ACCESS BY INDEX ROWID | MTL_ITEM_CATEGORIES          |    49 |   931 |    70   (0)|
|* 62 |          INDEX RANGE SCAN           | MTL_ITEM_CATEGORIES_N3       |   441 |       |     4   (0)|
|* 63 |        INDEX UNIQUE SCAN            | MTL_SYSTEM_ITEMS_B_U1        |     1 |     9 |     0   (0)|
|  64 |   TABLE ACCESS BY INDEX ROWID       | MTL_SYSTEM_ITEMS_B           |     1 |    16 |     1   (0)|
|* 65 |    INDEX UNIQUE SCAN                | MTL_SYSTEM_ITEMS_B_U1        |     1 |       |     0   (0)|
---------------------------------------------------------------------------------------------------------

Similar Messages

  • Do ordering your child block using other tables wihout using views

    Hi all,
    Just need to play with this : Query Data Source Name property for data block
    Benefit : you can do order by child block with other tables without using View
    I have used two tables in this property !!
    and it is working fine.
    e.g. Dept is master block
    and clild block is Emp nad combination with emp_category.
    so now I can order emp block by emp category.
    master block : dept
    Query datasource name : dept
    child block : emp
    Query datasource name : emp a , emp_category b
    From
    Chirag Patel

    Ok, I'd probably go with the two insert method, but as an alternative, here is a method of doing it in a single insert:
    create table emp_info as
    select 1 empno, 'a' empname, 101 deptid, 'aaa' deptname from dual union all
    select 2, 'b' empname, 201 deptid, 'bbb' deptname from dual union all
    select 3, 'c' empname, 101 deptid, 'aaa' deptname from dual union all
    select 4, 'd' empname, 101 deptid, 'aaa' deptname from dual union all
    select 5, 'e' empname, 301 deptid, 'ccc' deptname from dual;
    create table emp (empno number primary key, empname varchar2(3), deptid number);
    create table dept (deptid number primary key, deptname varchar2(3));
    insert all
      WHEN rn = 1 THEN
           into dept (deptid, deptname)
           values (deptid, deptname)
      WHEN rn > 0 THEN
           into emp (empno, empname, deptid)
           values (empno, empname, deptid)
    select empno, empname, deptid, deptname, rn
    from   (select empno,
                   empname,
                   deptid,
                   deptname,
                   row_number() over (partition by deptid order by empno) rn
            from   emp_info);
      8 rows inserted
    commit;
    select * from emp;
         EMPNO EMP     DEPTID
             1 a          101
             3 c          101
             4 d          101
             2 b          201
             5 e          301
    select * from dept;
        DEPTID DEP
           101 aaa
           201 bbb
           301 cccYou should test both methods to see which one is more performant.

  • Although all photos in my libraries are rotated to the correct orientation, random pictures still show up in the wrong position when viewed on Apple TV. Any suggestions?

    Although all photos in my libraries are rotated to the correct orientation, random pictures still show up in the wrong position when viewed on Apple TV.
    Any suggestions?

    silvergc
    Thanks for your comments
    Several of our iPhone users in the UK reported the problem this morning, and as the Apple fan in the office I've got the job of resolving the issue
    The original Excel was an old .xls file, but I have saved it as a .xlsx and the problem still appears
    I haven't spoken with our developer yet, but I assume he has created the Excel file using some programming tools rather that directly using Excel
    In the meantime I have created a simply spreadsheet with 8 cells contain values
    In the first 4 cells, I have formatted them using Currency, and have used the currencies USD, DEM, GBP and CHF
    In the remaining cells I have formatted them using the Accounting option, using the same currencies
    When I review the spreadsheet on the iPhone (or iPad), the first 4 remain the same yet the last four all show the £ symbol
    I have now changed the Region Format of the iPhone to United States, and when viewing on the iPhone the bottom 4 values are now all showing the $ sign!
    If I had created the spreadsheet I would have put the Currency code in a seperate cell and purely used a numeric format for the number, and there would be no issue.  That might be the only solution
    Yes, the Director has the full MS Excel app on his Windows 8 device, but I can't expect all of our clients to go and do the same, in business many of them will have the iPhone
    We may have to change the way we produce the report because of Apple's failings here, and it's not the first time that we have had to change something because Apple devices can't display them properly
    In business, submitting a potential job contract only for the recipient to get the wrong idea of the costs is a major concern

  • Photo Stream issue.  Photo Stream shows 263 photos when viewed on the iMac, 289 when viewed on the iPad and 327 when viewed on the iPhone.  How can this be?

    Photo Stream issue.  Photo Stream shows 263 photos when viewed on the iMac, 289 when viewed on the iPad and 327 when viewed on the iPhone.  How can this be?  Tried shut down on all devices, reboot and the results are the same.

    Photo Stream issue.  Photo Stream shows 263 photos when viewed on the iMac, 289 when viewed on the iPad and 327 when viewed on the iPhone.  How can this be?  Tried shut down on all devices, reboot and the results are the same.

  • Import tracks in album order when viewing by Date Added

    I've seen some older posts regarding this, but nothing recently. Here's my issue, and I can't believe more people aren't up in arms about it:
    I keep iTunes sorted by Date Added, so that my latest stuff is at the top -- pretty normal for a music listener, right?
    Say I have a folder of mp3s and I drag them into iTunes. For a long time in years past, even though you're dragging the entire album in, they would just get added in the order that iTunes wanted, rather than in album order. Then, at some point recently, I assume after an update to iTunes (?), they magically started being added in the correct order. I was really happy about this, as the random order entire albums were added in was extremely annoying.
    Now something's happened and the old behavior is back.
    Does anyone know how to drag an album's worth of mp3s into iTunes and have iTunes load them in in *album* order, so that when you view by Date Added, they show your album as it would look on the back of a cd or whatever, in the correct order?

    This won't directly answer your question, but I find that if I make a playlist of the album, then they appear in the correct order in that playlist.

  • Article fields appear in a random order when viewed in story and galley view

    Is it possible to amend Incopy so that all article fields appear in a consistent order for all articles and users when viewed in Story and Galley view?

    The Finder sorts photos alphanumerically or by date.  It has no "random" capability.  So if you want your manually sorted photos in iPhoto to remain in the same order you need to do one of the following;
    #1
    1 - select the photos in the album as you want them sorted and use the Photo ➙ Batch Rename ➙ Title to Text with a sequential number added to each file name.
    2 - Export the photos to a folder on the Desktop via the File ➙ Export ➙ File Export menu option with the File Name = Title option.
    #2
    1 - Select the album containing the photo in the order you want and export to a folder on the Desktop via the File ➙ Export ➙ File Export  menu option with the File Name = Album name with \ number option.
    Either method will give you files that will appear in the Finder in the order as they were in iPhoto.

  • Table of Contents displays in wrong order

    I created and generated a Table of Contents, and am having a weird issue.   It's a 19-page document, and Table of Contents is set to display Headings 1 and 2.  Everything went fine, except that on one page the Heading 1 on top of the page displays in the Table of Contents below the Heading 1 level below it - i.e., they're in the wrong order!  
    So, on the page its -
    9       Text
    10     Text
    But on the Table of Contents it returns -
    10     Text
    9       Text
    Any ideas about why it might be doing this?

    It can't be! If "9. Text" and "10. Text" use the same list for auto-numbering and "10" is below "9" on the same page, Indesign can't generate such, unless you don't copy the numbering to the TOC and instead add numbering via TOC style. Check your TOC style settings.

  • CD's play in wrong order when loaded to iPhone

    Hi everyone
    I have a number of personal development audio cd's that I am loading into iTunes and then transferring to my iPhone.  These CD sets need to be listened to in a specific order.
    Each CD loads fine and when I click on Get Info, each has the correct disc number allocated to it.  They have the same artist and specific album names.
    So, when I load CD's 1 through 4 onto iTunes, all is good, when I transfer them to my iPhone and Get Info, the same info has come across, but instead of playing 1, 2, 3, 4, they are playing 1, 4, 2, 3.  This is also the order they are listed in, when I search in Music via Artist on my phone.
    What am I doing wrong here, as I want them to play in the correct order?
    Thanks for reading

    http://indesignsecrets.com/stacking-order-bug-exporting-interactive-pdf.php

  • Pages displayed in wrong order when in two-up

    Hello,
    Lately I have run into a curious problem with certain PDF-files (papers from Systems Engineering Journal).  When displayed in two-up layout the first page is displayed on the right hand, and the second page on the left, like this:
    2 1
    4 3
    6 5
    If displayed two-up (continuous) with cover page the first page (cover) is displayed on the left hand, but after that it is the same pattern as above. When shown as single pages the pages are in the right order.
    System: Same behaviour in Acrobat Reader X (v.10.1.1), and Acrobat 9.4.4 Pro. Win 7 Enterprise, SP1.
    I realize this could be due to some error in the files themself since they are form the same souce, but is there any way around this?
    Best regards,
    J

    Thank you, it worked! It took some time to find though. I kept trying to change the "Reading order" under the Reading-tab. Didn't realize there were both a Reading order, and a Reading direction-option.
    Thank you!

  • How to change sort order when viewing all tracks by an artist?

    When I choose:
    Music --> Artists --> <any artist> --> All
    The tracks are organized in the order they apear in an alphabetized list of that artist's albums.
    For example:
    Joe Blow - CD 1
    Track 1
    Track 2
    Track 3
    Joe Blow - CD 2
    Track 1
    Track 2
    Track 3
    In the "All Songs By Artist" list, the songs appear as:
    Track 1
    Track 2
    Track 3
    Track 1
    Track 2
    Track 3
    How can I cange the sort order, so that they are sorted alphabetically, like this?
    Track 1
    Track 1
    Track 2
    Track 2
    Track 3
    Track 3
    Thanks,
    - Robert
    iPod nano

    I'm pretty sure you can't do that.

  • Indesign - Wrong order of pages when printing

    Hello
    I'm using Adobe Indesign CS4. Recently i decided to make my first "booklet". There are 80 pages - mixed text and images. When I try to print it as booklet I have problem with the order of the pages. After the page 26 or so it starts to print the pages in wrong order.When I have smaller booklet about 15 pages long the order is correct and I have no problems.
    What could cause this problem? I would be really greatful as I have spent almost 4 hours trying to figure this out without any results :/
    Thank you in advance and regards

    The thing is that in Preview everything seems to be correct , pages 1 and 80 etc are beside each other.
    Right now I have turned all the settings concerning printing Blank Pages and problem still occurs.
    To be exact, i have made document 80 pages long, containing only numbers of pages on the bottom right corner.
    I have set to print booklet (I use HP Laserjet P2015).
    Up to page 6 everything is correct, but then there is a blank page and the numeration is 8 , next page is number 7 , next number 10 and next numer 9. It is totally messed up.

  • Read only view which has an ORDER BY clause

    Aim to create a read only view which has an ORDER BY clause
    Sample script
    CREATE TABLE tab1 (
    col1 VARCHAR2(3),
    col2 NUMBER
    INSERT INTO tab1(col1, col2) VALUES ('ccc', 30);
    INSERT INTO tab1(col1, col2) VALUES ('bbb', 20);
    INSERT INTO tab1(col1, col2) VALUES ('ddd', 40);
    INSERT INTO tab1(col1, col2) VALUES ('aaa', 10);
    COMMIT;
    -- To creat View
    CREATE OR REPLACE VIEW v_tab1
    AS
    SELECT
    col1,
    col2
    FROM
    tab1
    ORDER BY
    col1
    WITH READ ONLY;
    I get the following error
    WITH READ ONLY
    ERROR at line 10:
    ORA-00933: SQL command not properly ended
    When I comment out the ORDER BY clause, the view is created
    Pls let me know how I can create a read only view with ORDER BY clause

    Hi,
    take a look at the documentation for CREATE VIEW, there is a restriction:
    "You cannot specify the ORDER BY clause in the subquery if you also specify the subquery_restriction_clause."
    Wolfgang

  • XML Parsing attributes with encoded ampersand causes wrong order

    Hi all,
    I am writing in the forum first (because it could be that i am doing something wrong.... but i think it is a bug. Nonetheless, i thought i'd write my problem up here first.
    I am using Java 6, and this has been reproduced on both windows and linux.
    java version "1.6.0_03"
    Problem:
    read XML file into org.w3c.dom.Document.
    XML File has some attributes which contain ampersand. These are escaped as (i think) is prescribed by the rule of XML. For example:
    <?xml version="1.0" encoding="UTF-8"?>
         <lang>
              <text dna="8233" ro="chisturi de plex coroid (&gt;=1.5 mm)" it="Cisti del plesso corioideo(&gt;=1.5mm)" tr="Koro&#305;d pleksus kisti (&gt;=1.5 mm)" pt_br="Cisto do plexo cor&oacute;ide (&gt;=1,5 mm)" de="Choroidplexus Zyste (&gt;=1,5 mm)" el="&Kappa;&#973;&sigma;&tau;&epsilon;&iota;&sigmaf; &chi;&omicron;&rho;&omicron;&epsilon;&iota;&delta;&omicron;&#973;&sigmaf; &pi;&lambda;&#941;&gamma;&mu;&alpha;&tau;&omicron;&sigmaf; (&gt;= 1.5 mm)" zh_cn="&#33033;&#32476;&#33180;&#22218;&#32959;&#65288;&gt;= 1.5 mm&#65289;" pt="Quisto do plexo coroideu (&gt;=1,5 mm)" bg="&#1050;&#1080;&#1089;&#1090;&#1072; &#1085;&#1072; &#1093;&#1086;&#1088;&#1080;&#1086;&#1080;&#1076;&#1085;&#1080;&#1103; &#1087;&#1083;&#1077;&#1082;&#1089;&#1091;&#1089; (&gt;= 1.5 mm)" fr="Kystes du plexus choroide (&gt;= 1,5 mm)" en="Choroid plexus cysts (&gt;=1.5 mm)" ru="&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (&gt;=1.5 mm)" es="Quiste del plexo coroideo (&gt;=1.5 mm)" ja="&#33032;&#32097;&#33180;&#22178;&#32990;&#65288;&gt;=1.5mm&#65289;" nl="Plexus choroidus cyste (&gt;= 1,5 mm)" />
    </lang>As you might understand, we need to have the fixed text '>' for later processing. (not the greater than symbol '>' but the escaped version of it).
    Therefore, I escape the ampersand (encode?) and leave the rest of the text as is. And so my > becomes >
    All ok?
    Symptom:
    in fetching attributes, for example by the getAttribute("en") type call, the wrong attribute values are fetched.
    Not only that, if i only read to Document instance, and write back to file, the attributes are shown mixed up.
    eg:
    dna: 8233, ro=chisturi de plex coroid (>=1.5 mm), en=&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (>=1, de=Choroidplexus Zyste (>=1,5 mm)Here you can see that 'en' is shown holding what looks like greek, ... (what is ru as a country-code anyway?) where it should have obviously had the english text that originally was associated with the attribute 'en'
    This seems very strange and unexpected to me. I would have thought that in escaping (encoding) the ampersand, i have fulfilled all requirements of me, and that should be that.
    There is also no error that seems to occur.... we simply get the wrong order when fetching attributes.
    Am I doing something wrong? Or is this a bug that should be submitted?
    Kind Regards, and thanks to all responders/readers.
    Sean
    p.s. previously I had not been escaping the ampersand. This meant that I lost my ampersand in fetching attributes, AND the attribute order was ALSO WRONG!
    In fact, the wrong order was what led me to read about how to correctly encode ampersand at all. I had been hoping that correctly encoding would fix the order problem, but it didn't.
    Edited by: svaens on Mar 31, 2008 6:21 AM

    Hi kdgregory ,
    Firstly, sorry if there has been a misunderstanding on my part. If i did not reply to the question you raised, I appologise.
    In this 'reply' I hope not to risk further misunderstanding, and have simply given the most basic example which will cause the problem I am talking about, as well as short instructions on what XML to remove to make the problem disappear.
    Secondly, as this page seems to be displayed in ISO 8859-1, this is the reason the xml I have posted looks garbled. The xml is UTF-8. I have provided a link to the example xml file for the sample below
    [example xml file UTF-8|http://sean.freeshell.org/java/less2.xml]
    As for your most recent questions:
    Is it specified as an entity? To my knowledge (so far as my understanding of what an entity is) , yes, I am including entities in my xml. In my below example, the entities are the code for the greater than symbol. I am under the understanding that this is allowed in XML ??
    Is it an actual literal character (0xA0)? No, I am specifying 'greater than' entity (code?) in order to include the actual symbol in the end result. I am encoding it in form 'ampersand', 'g character', 't character', 'colon' in order for it to work, according to information I have read on various web pages. A quick google search will show you where I got such information from, example website: https://studio.tellme.com/general/xmlprimer.html
    Here is my sample program. It is longer than the one you kindly provided only because it prints out all attributes of the element it looks for. To use it, only change the name of the file it loads.
    I have given the xml code seperately so it can be easily copied and saved to file.
    Results you can expect from running this small test example?
    1. a mixed up list of attributes where attribute node name no longer matches its assigned attribute values (not for all attributes, but some).
    2. removing the attribute bg from the 'text' element will reduce most of these symptoms, but not all. Removing another attribute from the element will most likely make the end result look normal again.
    3. No exception is thrown by the presence of non xml characters.
    IMPORTANT!!! I have only just (unfortunately) noticed what this page does to my unicode characters... all the the international characters get turned into funny codes when previewed and viewed on this page.
    Whereas the only codes I am explicitly including in this XML is the greater than symbol. The rest were international characters.
    Perhaps that is the problem?
    Perhaps there is an international characters problem?
    I am quite sure that these characters are all UTF-8 because when I open up this xml file in firefox, It displays correctly, and in checking the character encoding, firefox reports UTF-8.
    In order to provide an un-garbled xml file, I will provide it at this link:
    link to xml file: [http://sean.freeshell.org/java/less2.xml]
    Again, sorry for any hassle and/or delay with my reply, or poor reply. I did not mean to waste anyones time.
    It will be appreciated however if an answer can be found for this problem. Chiefly,
    1. Is this a bug?
    2. Is the XML correct? (if not, then all those websites i've been reading are giving false information? )
    Kindest Regards,
    Sean
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class Example
        public static void main(String[] argv)
              try
                   FileInputStream fis = new FileInputStream("/home/sean/Desktop/chris/less2.xml");
                 Document doc = DocumentBuilderFactory.newInstance()
                 .newDocumentBuilder()
                 .parse(new InputSource(fis));
                   Element root = doc.getDocumentElement();
                   NodeList textnodes = root.getElementsByTagName("text");
                   int len = textnodes.getLength();
                   int index = 0;
                   int attindex = 0;
                   int attrlen = 0;
                   NamedNodeMap attrs = null;
                   while (index<len)
                        Element te = (Element)textnodes.item(index);
                        attrs = te.getAttributes();
                        attrlen = attrs.getLength();
                        attindex = 0;
                        Node node = null;
                        while (attindex<attrlen)
                             node = attrs.item(attindex);          
                             System.out.println("attr: "+node.getNodeName()+ " is shown holding value: " + node.getNodeValue());
                             attindex++;                         
                        index++;
                        System.out.println("-------------");
                 fis.close();
              catch(Exception e)
                   System.out.println("we've had an exception, type "+ e);
    }  [example xml file|http://sean.freeshell.org/java/less2.xml]
    FOR THE XML, Please see link above, as it is UTF-8, and this page is not. Edited by: svaens on Apr 7, 2008 7:03 AM
    Edited by: svaens on Apr 7, 2008 7:23 AM
    Edited by: svaens on Apr 7, 2008 7:37 AM
    Edited by: svaens on Apr 7, 2008 7:41 AM

  • Problem in Spras field for join condition in creating new views

    Hi,
    I want to create a new view for three tables t1 t2 and t3 say.....i want to join this three tables like
    table    field         table   field
    t1      mandt     =   t2     mandt.
    t1      vkbur      =   t2      vkbur.
    And other condition is t2-spras = 'E' now.... how should i give this condition in the join condition as u have to give the other table name and the field name on the other side too..... table t1 has no filed in its table for the field spras.........so i just have to give t2-spras as 'E'. But this is throwing error...Please help

    Hi,
    1.u can specify the first thing i.e. t1 mandt = t2 mandt and t1 vkbur = t2 vkbur in the <b>join conditions</b> even if there is no relation ship b/w t1 and t2 on vkbur.simply u specify the join condition manually.
    2.for the second thing....wat u did is rite.......
    I think it will work.
    Thanks ,
    Jyothi.D
    want to create a new view for three tables t1 t2 and t3 say.....i want to join this three tables like
    table field table field
    t1 mandt = t2 mandt.
    t1 vkbur = t2 vkbur.
    And other condition is t2-spras = 'E' now.... how should i give this condition in the join condition as u have to give the other table name and the field name on the other side too..... table t1 has no filed in its table for the field spras.........so i just have to give t2-spras as 'E'. But this is throwing error...Please help

  • DESFORMAT=XML puts Select list columns in wrong order

    Hey,
    ANYONE ELSE HAVING THIS PROBLEM?
    Scenario:
    1.Run RDF report in IE browser with DESFORMAT=XML
    2.Save the resulting output on Workstation Desktop
    3.Open this output file using EXCEL
    Problem:
    The Select-List columns appear in alphabetical order when viewed in EXCEL
    I TRIED DESFORMAT=XML BECAUSE DESFORMAT=SpreadSheet PRODUCED OUTPUT WITH VERY BAD FORMATING...ROWS NOT ALIGNED...COLUMN HEADINGS SKEWED...LOTS OF BLANK ROWS....LOTS OF BLANK COLUMNS...etc...etc...
    Comments/Suggestions appreciated!

      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZCONTRACT_REPORT'
        CHANGING
          ct_fieldcat      = tbl_alvfieldcat.
    then
      LOOP AT tbl_alvfieldcat INTO wa_alvfieldcat.
        MOVE 'GTBL_REPORT' TO wa_alvfieldcat-tabname.
        CASE wa_alvfieldcat-fieldname.
          WHEN 'DATE_ORDER'.
            wa_alvfieldcat-col_pos = 4.
            wa_alvfieldcat-just = 'L'.
            wa_alvfieldcat-reptext = 'Date Order'.
            wa_alvfieldcat-scrtext_s = 'Date Order'.
            wa_alvfieldcat-scrtext_m = 'Date Order'.
            wa_alvfieldcat-scrtext_l = 'Date Order'.
            wa_alvfieldcat-outputlen = 10.

Maybe you are looking for

  • Metadata Panel missing in Bridge

    I have the latest version of CS4 (11.0.2). I was working in Adobe Bridge when an error msg. appeared saying that Bridge had a problem and would close. I rebooted, and when I accessed Bridge again, the Metadata Panel was missing. I have "Metadata Pane

  • How do you know when Acrobat xI has been downloaded?

    How can you tell Acrobat Xi has been downloaded?

  • DW CS6 Not allowed me to select again the + in the server behaviors

    I worked with server behaviors normally yesterday but today it has not allowed me to work with them. - I work with the tables in the database. - I checked the site definition and is correct. - I work with links normally. The system works normally, ex

  • Deployin in the Netweaver CE 7.1

    Hello My friends,                           I have to install the SSM ( SAP Strategy Management ) 7.0 in the Netweaver CE 7.1. The first step to install it is to deploy the file CPMSTRMGMAPC<sp>_<patch>-<smp-id>.SCA to the SAP NetWeaver CE server, bu

  • Why does my facebook app for my iPhone4 keep freezing?

    Whenever I open the app and it loads, the motion circle is moving at the top as if you are browsing the web and loading a website. Less than 60 seconds, the application will freeze unallowing me to quicky view any information. Eventually the app will