Forcing joins to be done separately

Is there a way to prevent OWB from combining joins when generating mappings? We have a case were we need to join two tables together and then do an outer join on that result to a third table.
select join.col1, join.col2, c.col3
from (select a.col1, b.col2
from table1 a, table2 b
where a.col1=b.col1) join,
table3 c
where join.col1=c.col1(+)
and join.col2=c.col2(+)
Unforuntately, after creating the mapping using two join operators the SQL generated looks like this ...
select a.col1, b.col2, c.col3
from table1 a, table2 b, table3 c
where a.col1=c.col1(+)
and b.col2=c.col2(+)
As a result, we get this error during execution: "ORA-01417: a table may be outer joined to at most one other table"

Hi,
I had a similar problem with lookups:
Problem with lookups and outer joins
There are two workarounds for your problem that I'm aware of:
1) Insert a sort (or aggregator) between the two joins. This does unfortunately have a performance impact
2) Create a view to resolve one of the two joins. No performance impact, but not very elegant as you have to move "ETL logic" from the model (mapping) down into the database.
Question for development; Is there a reason why separate joins are not always resolved as inline views?
Roald

Similar Messages

  • Force Join to Fact

    Hi...
    Is there any way to force OBI to join to the fact table when only one dimension is pulled into a query?
    For example, I have a generic date dimension with static dates loaded. Each date has its own alias. When I query a specific date, I only want to see a list of dates that exist. In other words, I do not want to see the entire list of static dates. I want to be able to do this without pulling a fact into the query.
    To accomplish this, I need to be able to tell OBI to join back to the fact table to get only relevant dates. Is this possible?
    I don't believe the implicit fact column will work here because as I understand it, that is when you have multiple fact tables and want to specify a join path when multiple dimensions are queried.
    Thanks...

    Hello
    As wildmight said, you can use a filter with your main measure :
    like : "where number of ID greater or equal than 0"
    You can also put the measure and hide it in the criteria properties.

  • OS X 10.8: Actions like "about this mac", "force quit", "shut down" don't work at all (no response).

    I just updated to OS X 10.8 and everything works good except those actions like "about this mac", "force quit", "shut down" not working (from apple logo left upper corner). There is no response at all after clicking on those actions. Anyone has the same issue?

    You are not alone! I have been trying to find a work around since I updated to 10.8.
    the only way to reboot my system is by cold booting.
    cmd-alt-esc doesn't work
    restart/shutdown/switch user doesn't respond
    I'm going to try and reinstall 10.8. If that doesn't work, I'm going back to Lion until this is resolved

  • Using a view to join two tables

    Thank you in advance for any advice you can lend.
    I am using this code in my MySQL db to create a view.
    select
        job.id as job_id,
        umr_cost_calculation.plant_name,
        max(umr_cost_calculation.id) as max_id
    from
        job,
        umr_cost_calculation
    where
        job.id = umr_cost_calculation.job_id
    group by job.id , umr_cost_calculation.plant_name
    I did this so I can join two tables and pull in the most current cost data for a specific plant. The report will, at times, show the wrong (older) data. I can re-run the report, filter to just the one job and see again the wrong data. When I add the max_id to the report, it display the id and updates the report with the correct data. It appears that the view was stale and by adding the ID to the report this fixed the issue.
    1) Is this the best way to make this join? I don't see how Crystal supports a subquery to make a join (this is why I used the view).
    2) If I leave the max_id on the report, will this force the view to always update?

    Try:
    Select
    D1.EmpLoginID,
    Count(D1.ID),
    Count(D1.AlarmCode),
    D1.EmpName,
    D1.EmpAddress,
    D2.Db2Count
    FROM DB1.Data D1
    LEFT JOIN (SELECT
    empLoginID, Count(*) as Db2Count
    FROM DB2.ALL_Database
    WHERE site = 'Atlanta'
    GROUP BY empLoginID
    ) D2
    ON D1.EmpLoginID = D2.EmpLoginID
    GROUP BY D1.empLoginID, D1.EmpName, D2.EmpAddress, D2.Db2Count
    Order BY D1.empLoginID ASC
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Join hint ignored - very bad query plan results

    I'm trying to get a query that's being generated by SSAS to perform acceptably. Because this query is (at least partially) generated by SSAS, I don't have complete control over the query text.
    The problem - The query looks roughly like this:
    select
    -- a bunch of columns
    from
    T1 -- table with ~40,000,000 rows
    inner loop join T2 on T2.t2id = T1.t2id -- table with ~16,000 rows
    inner loop join T3 on T3.t3id = T1.t3id -- table with ~200,000 rows inner loop join T4 on T4.t4id = T1.t4id -- table with ~200,000 rows
    left loop join T5 on T5.t3id = T1.t3id and T5.t6id = T4.t6id -- table with 0 rows
    where
    -- some uninteresting conditions
    T1 is a Fact (or Measure) table, T2, T3 and T4 are Dimension tables, T5 and T6 are involved in the filtering of the query.  Every row of T1 WILL match exactly one row in each of T1, T2 and T3.
    You'll note that I've hinted all of the joins - according to the documentation, using join hints forces join order (which is consistent with the plan that's produced).  There's no mention that join hints can be transparently ignored by the optimizer,
    but that seems to be precisely what's happening.
    In the plan that results, the join to T4 is done as a hash join, with T1*T2*T3 (40,000,000 rows) on the "top", so it ends up trying to build a hash table with 40,000,000 rows, resulting in very high tempdb activity and very poor performance (I
    don't know how poor - I've never let it finish).
    I can see part of the reason why it's making this join choice - the estimate of T1*T2*T3 is only 35,000 rows, even though T1 has 40,000,000 rows and the join will hit on every row.
    Questions:
    1. What can I do to the query or the database to improve the estimate on the join to T3?
    2. What can I do to the query to force the optimizer to use a loop join like I asked? 
    Version is SQL Server 2008 R2 SP2 Developer Edition X64.
    OS is Windows 2008 R2
    Machine is dual-quad-hyper-threaded CPU with 96Gb of RAM and several Tb of disk spread over 8 spindles and SSDs.
    I've seen this query perform well before - I've been tuning this query for going on 7 years now and I've never seen it perform this badly that I can recall.  Not sure if it's something that's changed in SP2, or something about the distribution
    of data in this particular database that's changed, but something's sure changed.
    -cd Mark the best replies as answers!

    That would indicate that there are no foreign-key constraints, or if they, they are not trusted. (Assuming here that there WHERE clause includes no filter on T1.)
    That, or the statistics on T1 are giving a completely wrong estimates for the number of NULL values in t2id and t3id.
    Erland Sommarskog, SQL Server MVP, [email protected]
    Thanks, Erland.
    There are foreign key constraints, but they're NOCHECK.  I've tried creating and updating statistics on various columns of the tables involved - I'll re-check that I've got up to date statistics on all of the columns involved in these joins.
    What about the join-hint being ignored?  Is there anything I can do, or has something changed here recently?  Interestingly, when I run this query from SSMS, I get loop-joins all around, but when SSAS runs the query, the one join always comes out
    a hash join. Before I added the hints, all joins were hash joins - the hints worked on all joins but the one.
    -cd Mark the best replies as answers!

  • Logic Pro "Not Responding" And I have to force quit.

    I am having trouble starting up Logic Pro. It keeps opening up to the Template Box and once I make an option every thing stops responding and I am forced to "force quit". I don't understand the issue. Here is the report that keeps coming out. PLEASE HELP ME. THANK YOU.
    Date/Time:       2015-02-07 19:14:20 -0500
    OS Version:      10.10.2 (Build 14C109)
    Architecture:    x86_64
    Report Version:  21
    Command:         Logic Pro X
    Path:            /Applications/Logic Pro X.app/Contents/MacOS/Logic Pro X
    Version:         10.1.0 (3683.26)
    Build Version:   1
    Project Name:    MALogic
    Source Version:  3683026000000000
    App Item ID:     634148309
    App External ID: 590352671
    Parent:          launchd [1]
    PID:             413
    Event:           hang
    Duration:        2.60s (process was unresponsive for 12 seconds before sampling)
    Steps:           27 (100ms sampling interval)
    Hardware model:  MacPro3,1
    Active cpus:     8
    Fan speed:       499 rpm
    Timeline format: stacks are sorted chronologically
    Use -i and -heavy to re-report with count sorting
    Heaviest stack for the main thread of the target process:
      27  start + 1 (libdyld.dylib + 13769) [0x7fff9094c5c9]
      27  ??? (Logic Pro X + 6700021) [0x10a06ebf5]
      27  NSApplicationMain + 1832 (AppKit + 10772) [0x7fff8b662a14]
      27  -[NSApplication run] + 594 (AppKit + 95635) [0x7fff8b677593]
      27  -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194 (AppKit + 145200) [0x7fff8b683730]
      27  _DPSNextEvent + 964 (AppKit + 147329) [0x7fff8b683f81]
      27  _BlockUntilNextEventMatchingListInModeWithFilter + 71 (HIToolbox + 190123) [0x7fff8d2926ab]
      27  ReceiveNextEventCommon + 431 (HIToolbox + 190570) [0x7fff8d29286a]
      27  RunCurrentEventLoopInMode + 235 (HIToolbox + 191215) [0x7fff8d292aef]
      27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858]
      27  __CFRunLoopRun + 2024 (CoreFoundation + 467592) [0x7fff88dc3288]
      27  __CFRunLoopDoTimers + 301 (CoreFoundation + 1215933) [0x7fff88e79dbd]
      27  __CFRunLoopDoTimer + 1059 (CoreFoundation + 743411) [0x7fff88e067f3]
      27  __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 (CoreFoundation + 744292) [0x7fff88e06b64]
      27  __NSFireTimer + 95 (Foundation + 421299) [0x7fff8e09adb3]
      27  ??? (Logic Pro X + 6874334) [0x10a0994de]
      27  ??? (Logic Pro X + 6888416) [0x10a09cbe0]
      27  ??? (Logic Pro X + 1933898) [0x109be324a]
      27  ??? (Logic Pro X + 6201131) [0x109ff4f2b]
      27  ??? (Logic Pro X + 4981892) [0x109ecb484]
      27  ??? (Logic Pro X + 6293641) [0x10a00b889]
      27  ??? (Logic Pro X + 6528304) [0x10a044d30]
      27  ??? (Logic Pro X + 10596735) [0x10a42617f]
      27  ??? (Logic Pro X + 10597956) [0x10a426644]
      27  -[NSApplication runModalForWindow:] + 98 (AppKit + 3306753) [0x7fff8b987501]
      27  ??? (Logic Pro X + 6698531) [0x10a06e623]
      27  ??? (Logic Pro X + 6921731) [0x10a0a4e03]
      27  ??? (Logic Pro X + 6381745) [0x10a0210b1]
      27  ??? (Logic Pro X + 6397433) [0x10a024df9]
      27  ??? (Logic Pro X + 6351150) [0x10a01992e]
      27  ??? (Logic Pro X + 6349025) [0x10a0190e1]
      27  ??? (<7EEFB84F-3F0A-5992-CE6A-DAC4D62F57F4> + 6919) [0x11498db07]
      27  ??? (<7EEFB84F-3F0A-5992-CE6A-DAC4D62F57F4> + 5247) [0x11498d47f]
      27  ??? (Logic Pro X + 6307978) [0x10a00f08a]
      27  ??? (Logic Pro X + 6312447) [0x10a0101ff]
      27  ??? (Logic Pro X + 4338041) [0x109e2e179]
      27  usleep + 54 (libsystem_c.dylib + 519760) [0x7fff8fe25e50]
      27  __semwait_signal + 10 (libsystem_kernel.dylib + 91274) [0x7fff8f02148a]
    *25  semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560]
    Process:         Logic Pro X [413]
    Path:            /Applications/Logic Pro X.app/Contents/MacOS/Logic Pro X
    Architecture:    x86_64
    Parent:          launchd [1]
    UID:             501
    Task size:       31763 pages
    CPU Time:        0.237s
    Note:            Unresponsive for 12 seconds before sampling
    Note:            1 idle work queue threads omitted
      Thread 0x1998       DispatchQueue 1     27 samples (1-27)   priority 47         cpu time 0.051s
      <frontmost, thread QoS user interactive, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  start + 1 (libdyld.dylib + 13769) [0x7fff9094c5c9] 1-27
        27  ??? (Logic Pro X + 6700021) [0x10a06ebf5] 1-27
          27  NSApplicationMain + 1832 (AppKit + 10772) [0x7fff8b662a14] 1-27
            27  -[NSApplication run] + 594 (AppKit + 95635) [0x7fff8b677593] 1-27
              27  -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194 (AppKit + 145200) [0x7fff8b683730] 1-27
                27  _DPSNextEvent + 964 (AppKit + 147329) [0x7fff8b683f81] 1-27
                  27  _BlockUntilNextEventMatchingListInModeWithFilter + 71 (HIToolbox + 190123) [0x7fff8d2926ab] 1-27
                    27  ReceiveNextEventCommon + 431 (HIToolbox + 190570) [0x7fff8d29286a] 1-27
                      27  RunCurrentEventLoopInMode + 235 (HIToolbox + 191215) [0x7fff8d292aef] 1-27
                        27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
                          27  __CFRunLoopRun + 2024 (CoreFoundation + 467592) [0x7fff88dc3288] 1-27
                            27  __CFRunLoopDoTimers + 301 (CoreFoundation + 1215933) [0x7fff88e79dbd] 1-27
                              27  __CFRunLoopDoTimer + 1059 (CoreFoundation + 743411) [0x7fff88e067f3] 1-27
                                27  __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 (CoreFoundation + 744292) [0x7fff88e06b64] 1-27
                                  27  __NSFireTimer + 95 (Foundation + 421299) [0x7fff8e09adb3] 1-27
                                    27  ??? (Logic Pro X + 6874334) [0x10a0994de] 1-27
                                      27  ??? (Logic Pro X + 6888416) [0x10a09cbe0] 1-27
                                        27  ??? (Logic Pro X + 1933898) [0x109be324a] 1-27
                                          27  ??? (Logic Pro X + 6201131) [0x109ff4f2b] 1-27
                                            27  ??? (Logic Pro X + 4981892) [0x109ecb484] 1-27
                                              27  ??? (Logic Pro X + 6293641) [0x10a00b889] 1-27
                                                27  ??? (Logic Pro X + 6528304) [0x10a044d30] 1-27
                                                  27  ??? (Logic Pro X + 10596735) [0x10a42617f] 1-27
                                                    27  ??? (Logic Pro X + 10597956) [0x10a426644] 1-27
                                                      27  -[NSApplication runModalForWindow:] + 98 (AppKit + 3306753) [0x7fff8b987501] 1-27
                                                        27  ??? (Logic Pro X + 6698531) [0x10a06e623] 1-27
                                                          27  ??? (Logic Pro X + 6921731) [0x10a0a4e03] 1-27
                                                            27  ??? (Logic Pro X + 6381745) [0x10a0210b1] 1-27
                                                              27  ??? (Logic Pro X + 6397433) [0x10a024df9] 1-27
                                                                27  ??? (Logic Pro X + 6351150) [0x10a01992e] 1-27
                                                                  27  ??? (Logic Pro X + 6349025) [0x10a0190e1] 1-27
                                                                    27  ??? (<7EEFB84F-3F0A-5992-CE6A-DAC4D62F57F4> + 6919) [0x11498db07] 1-27
                                                                      27  ??? (<7EEFB84F-3F0A-5992-CE6A-DAC4D62F57F4> + 5247) [0x11498d47f] 1-27
                                                                        27  ??? (Logic Pro X + 6307978) [0x10a00f08a] 1-27
                                                                          27  ??? (Logic Pro X + 6312447) [0x10a0101ff] 1-27
                                                                            27  ??? (Logic Pro X + 4338041) [0x109e2e179] 1-27
                                                                              27  usleep + 54 (libsystem_c.dylib + 519760) [0x7fff8fe25e50] 1-27
                                                                                27  __semwait_signal + 10 (libsystem_kernel.dylib + 91274) [0x7fff8f02148a] 1-27
                                                                                 *1   semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560] (running) 1
                                                                                 *7   semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560] 2-8
                                                                                 *1   semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560] (running) 9
                                                                                 *18  semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560] 10-27
      Thread 0x19c2       DispatchQueue 2     27 samples (1-27)   priority 47
      <frontmost, thread QoS user interactive, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  _dispatch_mgr_thread + 52 (libdispatch.dylib + 19050) [0x7fff8ae3aa6a] 1-27
        27  kevent64 + 10 (libsystem_kernel.dylib + 94770) [0x7fff8f022232] 1-27
         *27  ??? (kernel + 5988368) [0xffffff80007b6010] 1-27
      Thread 0x19f4       27 samples (1-27)   priority 31
      <frontmost, thread QoS legacy, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 140794) [0x1131b35fa] 1-27
              27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 140854) [0x1131b3636] 1-27
                27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 136854) [0x1131b2696] 1-27
                  27  __psynch_cvwait + 10 (libsystem_kernel.dylib + 90422) [0x7fff8f021136] 1-27
                   *27  psynch_cvcontinue + 0 (pthread + 26908) [0xffffff7f80de291c] 1-27
      Thread 0x19f6       27 samples (1-27)   priority 31
      <frontmost, thread QoS legacy, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 128634) [0x1131b067a] 1-27
              27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 128739) [0x1131b06e3] 1-27
                27  __psynch_cvwait + 10 (libsystem_kernel.dylib + 90422) [0x7fff8f021136] 1-27
                 *27  psynch_cvcontinue + 0 (pthread + 26908) [0xffffff7f80de291c] 1-27
      Thread 0x19f8       27 samples (1-27)   priority 31
      <frontmost, thread QoS legacy, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 124858) [0x1131af7ba] 1-27
              27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 125413) [0x1131af9e5] 1-27
                27  __recvfrom + 10 (libsystem_kernel.dylib + 90938) [0x7fff8f02133a] 1-27
                 *27  hndl_unix_scall64 + 22 (kernel + 2322054) [0xffffff8000436e86] 1-27
                   *27  unix_syscall64 + 662 (kernel + 6599558) [0xffffff800084b386] 1-27
                     *27  recvfrom_nocancel + 234 (kernel + 6439194) [0xffffff800082411a] 1-27
                       *27  ??? (kernel + 6451163) [0xffffff8000826fdb] 1-27
                         *27  soreceive + 2319 (kernel + 6381487) [0xffffff8000815faf] 1-27
                           *27  sbwait + 310 (kernel + 6413318) [0xffffff800081dc06] 1-27
                             *27  msleep + 98 (kernel + 6140770) [0xffffff80007db362] 1-27
                               *27  ??? (kernel + 6141865) [0xffffff80007db7a9] 1-27
                                 *27  lck_mtx_sleep + 134 (kernel + 1292598) [0xffffff800033b936] 1-27
                                   *27  thread_block_reason + 175 (kernel + 1335599) [0xffffff800034612f] 1-27
                                     *27  ??? (kernel + 1345492) [0xffffff80003487d4] 1-27
                                       *27  machine_switch_context + 367 (kernel + 2186783) [0xffffff8000415e1f] 1-27
      Thread 0x1a4f       27 samples (1-27)   priority 1
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (Logic Pro X + 3279065) [0x109d2b8d9] 1-27
              27  -[NSRunLoop(NSRunLoop) runUntilDate:] + 108 (Foundation + 726334) [0x7fff8e0e553e] 1-27
                27  -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278 (Foundation + 436297) [0x7fff8e09e849] 1-27
                  27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
                    27  __CFRunLoopRun + 1371 (CoreFoundation + 466939) [0x7fff88dc2ffb] 1-27
                      27  __CFRunLoopServiceMachPort + 212 (CoreFoundation + 469812) [0x7fff88dc3b34] 1-27
                        27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                         *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Thread 0x1a50       27 samples (1-27)   priority 97
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  TimerThread + 266 (CarbonCore + 561633) [0x7fff8f9da1e1] 1-27
              27  ??? (Logic Pro X + 4252652) [0x109e193ec] 1-27
                27  ??? (Logic Pro X + 4255299) [0x109e19e43] 1-27
                  27  ??? (Logic Pro X + 4332323) [0x109e2cb23] 1-27
                    27  ??? (Logic Pro X + 6378489) [0x10a0203f9] 1-27
                      27  __psynch_mutexwait + 10 (libsystem_kernel.dylib + 90470) [0x7fff8f021166] 1-27
                       *27  psynch_mtxcontinue + 0 (pthread + 21926) [0xffffff7f80de15a6] 1-27
      Thread 0x1a51       27 samples (1-27)   priority 97         cpu time 0.002s
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<8803C090-9288-3128-B0FF-9CBA810660DC> + 60043) [0x10b81fa8b] 1-27
              27  ??? (<8803C090-9288-3128-B0FF-9CBA810660DC> + 61018) [0x10b81fe5a] 1-27
                27  ??? (<8803C090-9288-3128-B0FF-9CBA810660DC> + 169838) [0x10b83a76e] 1-27
                  27  ??? (<8803C090-9288-3128-B0FF-9CBA810660DC> + 56763) [0x10b81edbb] 1-27
                    27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                     *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Thread 0x1a52       27 samples (1-27)   priority 31
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<6035F770-C154-33D9-8EE4-CFAC78F77D36> + 162601) [0x10d428b29] 1-27
              27  ??? (<6035F770-C154-33D9-8EE4-CFAC78F77D36> + 163483) [0x10d428e9b] 1-27
                27  __psynch_cvwait + 10 (libsystem_kernel.dylib + 90422) [0x7fff8f021136] 1-27
                 *27  psynch_cvcontinue + 0 (pthread + 26908) [0xffffff7f80de291c] 1-27
      Thread 0x1a53       27 samples (1-27)   priority 29
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<6035F770-C154-33D9-8EE4-CFAC78F77D36> + 162601) [0x10d428b29] 1-27
              27  ??? (<6035F770-C154-33D9-8EE4-CFAC78F77D36> + 163483) [0x10d428e9b] 1-27
                27  __psynch_cvwait + 10 (libsystem_kernel.dylib + 90422) [0x7fff8f021136] 1-27
                 *27  psynch_cvcontinue + 0 (pthread + 26908) [0xffffff7f80de291c] 1-27
      Thread 0x1a55       27 samples (1-27)   priority 47
      <frontmost, thread QoS user interactive, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  _NSEventThread + 137 (AppKit + 1602363) [0x7fff8b7e733b] 1-27
              27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
                27  __CFRunLoopRun + 1371 (CoreFoundation + 466939) [0x7fff88dc2ffb] 1-27
                  27  __CFRunLoopServiceMachPort + 212 (CoreFoundation + 469812) [0x7fff88dc3b34] 1-27
                    27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                     *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Thread 0x1a68       27 samples (1-27)   priority 47
      <frontmost, thread QoS user interactive, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  __select + 10 (libsystem_kernel.dylib + 91130) [0x7fff8f0213fa] 1-27
             *27  ??? (kernel + 6142240) [0xffffff80007db920] 1-27
      Thread 0x1a69       27 samples (1-27)   priority 31
      <frontmost, thread QoS legacy, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (Logic Pro X + 6457725) [0x10a03397d] 1-27
              27  __select + 10 (libsystem_kernel.dylib + 91130) [0x7fff8f0213fa] 1-27
               *27  ??? (kernel + 6142240) [0xffffff80007db920] 1-27
      Thread 0x1abe       27 samples (1-27)   priority 54         cpu time 0.003s
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  startIOThread(void*) + 147 (CoreVideo + 8859) [0x7fff8e44e29b] 1-27
              27  CVDisplayLink::runIOThread() + 511 (CoreVideo + 9395) [0x7fff8e44e4b3] 1-27
                27  CVDisplayLink::waitUntil(unsigned long long) + 240 (CoreVideo + 12280) [0x7fff8e44eff8] 1-27
                  27  __psynch_cvwait + 10 (libsystem_kernel.dylib + 90422) [0x7fff8f021136] 1-27
                   *27  psynch_cvcontinue + 0 (pthread + 26908) [0xffffff7f80de291c] 1-27
      Thread 0x1ae6       27 samples (1-27)   priority 63
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  __NSThread__main__ + 1345 (Foundation + 428298) [0x7fff8e09c90a] 1-27
              27  +[NSURLConnection(Loader) _resourceLoadLoop:] + 434 (CFNetwork + 658560) [0x7fff886d9c80] 1-27
                27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
                  27  __CFRunLoopRun + 1371 (CoreFoundation + 466939) [0x7fff88dc2ffb] 1-27
                    27  __CFRunLoopServiceMachPort + 212 (CoreFoundation + 469812) [0x7fff88dc3b34] 1-27
                      27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                       *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Thread 0x1af9       27 samples (1-27)   priority 47         cpu time 0.177s
      <frontmost, thread QoS user interactive, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  __NSThread__main__ + 1345 (Foundation + 428298) [0x7fff8e09c90a] 1-27
              8   -[NSUIHeartBeat _heartBeatThread:] + 2376 (AppKit + 2312035) [0x7fff8b894763] 1-8
                8   usleep + 54 (libsystem_c.dylib + 519760) [0x7fff8fe25e50] 1-8
                  8   __semwait_signal + 10 (libsystem_kernel.dylib + 91274) [0x7fff8f02148a] 1-8
                   *8   semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560] 1-8
              2   -[NSUIHeartBeat _heartBeatThread:] + 933 (AppKit + 2310592) [0x7fff8b8941c0] 9-10
                2   -[NSWindow(NSWindow_Theme) heartBeat:] + 296 (AppKit + 3286681) [0x7fff8b982699] 9-10
                  2   -[NSButtonCell(NSDefaultButtonIndicatorPrivate) heartBeat:] + 2419 (AppKit + 3289254) [0x7fff8b9830a6] 9-10
                    2   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inContext:topView:] + 117 (AppKit + 2503592) [0x7fff8b8c33a8] 9-10
                      2   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shoul dChangeFontReferenceColor:] + 2135 (AppKit + 1395214) [0x7fff8b7b4a0e] 9-10
                        2   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shoul dChangeFontReferenceColor:] + 2135 (AppKit + 1395214) [0x7fff8b7b4a0e] 9-10
                          2   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shoul dChangeFontReferenceColor:] + 2135 (AppKit + 1395214) [0x7fff8b7b4a0e] 9-10
                            2   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shoul dChangeFontReferenceColor:] + 2135 (AppKit + 1395214) [0x7fff8b7b4a0e] 9-10
                              2   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shoul dChangeFontReferenceColor:] + 1186 (AppKit + 1394265) [0x7fff8b7b4659] 9-10
                                2   -[NSControl drawRect:] + 342 (AppKit + 1425408) [0x7fff8b7bc000] 9-10
                                  2   ??? (<6D450B10-0C66-31BA-B812-2C18CAEAC4EB> + 172441) [0x10d7eb199] 9-10
                                    2   ??? (<6D450B10-0C66-31BA-B812-2C18CAEAC4EB> + 168694) [0x10d7ea2f6] 9-10
                                      2   ??? (<6D450B10-0C66-31BA-B812-2C18CAEAC4EB> + 1413552) [0x10d91a1b0] 9-10
                                        1   ??? (<6D450B10-0C66-31BA-B812-2C18CAEAC4EB> + 1309716) [0x10d900c14] 9
                                          1   -[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1108 (AppKit + 1442613) [0x7fff8b7c0335] 9
                                            1   __74-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 800 (AppKit + 1443986) [0x7fff8b7c0892] 9
                                              1   CGContextDrawImage + 457 (CoreGraphics + 158871) [0x7fff92913c97] 9
                                                1   ripc_DrawImage + 1174 (libRIP.A.dylib + 48766) [0x7fff8eecbe7e] 9
                                                  1   ripc_RenderImage + 265 (libRIP.A.dylib + 57193) [0x7fff8eecdf69] 9
                                                    1   RIPLayerBltImage + 1146 (libRIP.A.dylib + 58900) [0x7fff8eece614] 9
                                                      1   ripl_Mark + 23 (libRIP.A.dylib + 62237) [0x7fff8eecf31d] 9
                                                        1   RGBA32_image + 1156 (CoreGraphics + 985520) [0x7fff929dd9b0] 9
                                                          1   argb32_image_mark + 1590 (CoreGraphics + 336011) [0x7fff9293f08b] (running) 9
                                        1   ??? (<6D450B10-0C66-31BA-B812-2C18CAEAC4EB> + 1309502) [0x10d900b3e] 10
                                          1   -[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 2122 (AppKit + 1440551) [0x7fff8b7bfb27] 10
                                            1   -[NSImage _usingBestRepresentationForRect:context:hints:body:] + 164 (AppKit + 973254) [0x7fff8b74d9c6] 10
                                              1   __71-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke1008 + 1139 (AppKit + 5231542) [0x7fff8bb5d3b6] 10
                                                1   -[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1108 (AppKit + 1442613) [0x7fff8b7c0335] 10
                                                  1   __74-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 800 (AppKit + 1443986) [0x7fff8b7c0892] 10
                                                    1   CGContextDrawImage + 457 (CoreGraphics + 158871) [0x7fff92913c97] 10
                                                      1   ripc_DrawImage + 1174 (libRIP.A.dylib + 48766) [0x7fff8eecbe7e] 10
                                                        1   ripc_RenderImage + 265 (libRIP.A.dylib + 57193) [0x7fff8eecdf69] 10
                                                          1   RIPLayerBltImage + 1146 (libRIP.A.dylib + 58900) [0x7fff8eece614] 10
                                                            1   ripl_Mark + 23 (libRIP.A.dylib + 62237) [0x7fff8eecf31d] 10
                                                              1   RGBA32_image + 4920 (CoreGraphics + 989284) [0x7fff929de864] 10
                                                                1   CGSBlend8888toRGBA8888 + 339 (CoreGraphics + 188888) [0x7fff9291b1d8] 10
                                                                  1   vImagePremultipliedAlphaBlendWithPermute_RGBA8888 + 574 (vImage + 74382) [0x7fff8b21e28e] 10
                                                                    1   vPremultipliedAlphaBlendWithPermute_RGBA8888 + 2658 (vImage + 232834) [0x7fff8b244d82] (running) 10
              9   -[NSUIHeartBeat _heartBeatThread:] + 2376 (AppKit + 2312035) [0x7fff8b894763] 11-19
                9   usleep + 54 (libsystem_c.dylib + 519760) [0x7fff8fe25e50] 11-19
                  9   __semwait_signal + 10 (libsystem_kernel.dylib + 91274) [0x7fff8f02148a] 11-19
                   *9   semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560] 11-19
              1   -[NSUIHeartBeat _heartBeatThread:] + 933 (AppKit + 2310592) [0x7fff8b8941c0] 20
                1   -[NSWindow(NSWindow_Theme) heartBeat:] + 296 (AppKit + 3286681) [0x7fff8b982699] 20
                  1   -[NSButtonCell(NSDefaultButtonIndicatorPrivate) heartBeat:] + 2419 (AppKit + 3289254) [0x7fff8b9830a6] 20
                    1   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inContext:topView:] + 117 (AppKit + 2503592) [0x7fff8b8c33a8] 20
                      1   -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shoul dChangeFontReferenceColor:] + 1186 (AppKit + 1394265) [0x7fff8b7b4659] 20
                        1   -[NSThemeFrame drawRect:] + 280 (AppKit + 2178630) [0x7fff8b873e46] 20
                          1   -[NSFrameView drawRect:] + 1158 (AppKit + 2179825) [0x7fff8b8742f1] 20
                            1   -[NSFrameView drawThemeContentFill:inView:] + 287 (AppKit + 1402504) [0x7fff8b7b6688] 20
                              1   -[NSThemeFrame drawWindowBackgroundRect:] + 129 (AppKit + 1404452) [0x7fff8b7b6e24] 20
                                1   CGContextRestoreGState + 32 (CoreGraphics + 70612) [0x7fff928fe3d4] 20
                                  1   CGGStackRestore + 58 (CoreGraphics + 70702) [0x7fff928fe42e] 20
                                    1   free + 206 (libsystem_malloc.dylib + 18521) [0x7fff9219a859] (running) 20
              7   -[NSUIHeartBeat _heartBeatThread:] + 2376 (AppKit + 2312035) [0x7fff8b894763] 21-27
                7   usleep + 54 (libsystem_c.dylib + 519760) [0x7fff8fe25e50] 21-27
                  7   __semwait_signal + 10 (libsystem_kernel.dylib + 91274) [0x7fff8f02148a] 21-27
                   *7   semaphore_wait_continue + 0 (kernel + 1373536) [0xffffff800034f560] 21-27
      Thread 0x1b2c       27 samples (1-27)   priority 31
      <frontmost, boosted, received importance donation from filecoordinationd [253], received importance donation from WindowServer [179], IO policy important>
    *27  wq_unsuspend_continue + 0 (pthread + 18452) [0xffffff7f80de0814] (suspended) 1-27
      Binary Images:
             0x109a0b000 -        0x10ab9afff  com.apple.logic10 10.1.0 (3683.26)                <34C65181-2AAD-3E37-975D-D4035B4CE0EA>  /Applications/Logic Pro X.app/Contents/MacOS/Logic Pro X
             0x10b811000 -                ???  ???                                               <8803C090-9288-3128-B0FF-9CBA810660DC>
             0x10d401000 -                ???  ???                                               <6035F770-C154-33D9-8EE4-CFAC78F77D36>
             0x10d7c1000 -                ???  ???                                               <6D450B10-0C66-31BA-B812-2C18CAEAC4EB>
             0x113191000 -                ???  ???                                               <0717F791-4EAA-3C0F-988E-8B558DCD9916>
             0x11498c000 -                ???  ???                                               <7EEFB84F-3F0A-5992-CE6A-DAC4D62F57F4>
          0x7fff88639000 -     0x7fff8883cfff  com.apple.CFNetwork 720.2.4 (720.2.4)             <E550C671-930F-3B12-8798-23898473E179>  /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
          0x7fff88d51000 -     0x7fff890e7fff  com.apple.CoreFoundation 6.9 (1152)               <CBD1591C-405E-376E-87E9-B264610EBF49>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          0x7fff8ae36000 -     0x7fff8ae60fff  libdispatch.dylib (442.1.4)                       <502CF32B-669B-3709-8862-08188225E4F0>  /usr/lib/system/libdispatch.dylib
          0x7fff8b20c000 -     0x7fff8b65ffff  com.apple.vImage 8.0 (8.0)                        <33BE7B31-72DB-3364-B37E-C322A32748C5>  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
          0x7fff8b660000 -     0x7fff8c1aafff  com.apple.AppKit 6.9 (1344.72)                    <44EF7DEB-3072-3515-9F34-2857D557E828>  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
          0x7fff8d264000 -     0x7fff8d568fff  com.apple.HIToolbox 2.1.1 (757.3)                 <D827FC03-5668-3AA4-AF0E-46EEF7358EEA>  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
          0x7fff8e034000 -     0x7fff8e362fff  com.apple.Foundation 6.9 (1152.14)                <E3746EDD-DFB1-3ECB-88ED-A91AC0EF3AAA>  /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
          0x7fff8e44c000 -     0x7fff8e479fff  com.apple.CoreVideo 1.8 (145.1)                   <18DB07E0-B927-3260-A234-636F298D1917>  /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
          0x7fff8eec0000 -     0x7fff8eee8fff  libRIP.A.dylib (775.16)                           <7711F7A7-1813-3024-AE42-75CA7C5422B7>  /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A .dylib
          0x7fff8f00b000 -     0x7fff8f028fff  libsystem_kernel.dylib (2782.10.72)               <97CD7ACD-EA0C-3434-BEFC-FCD013D6BB73>  /usr/lib/system/libsystem_kernel.dylib
          0x7fff8f951000 -     0x7fff8fc38fff  com.apple.CoreServices.CarbonCore 1108.2 (1108.2) <FD87F83F-301A-3BD6-8262-5692FC1B4457>  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
          0x7fff8fda7000 -     0x7fff8fe33fff  libsystem_c.dylib (1044.10.1)                     <199ED5EB-77A1-3D43-AA51-81779CE0A742>  /usr/lib/system/libsystem_c.dylib
          0x7fff90949000 -     0x7fff9094cfff  libdyld.dylib (353.2.1)                           <4E33E416-F1D8-3598-B8CC-6863E2ECD0E6>  /usr/lib/system/libdyld.dylib
          0x7fff92196000 -     0x7fff921b2fff  libsystem_malloc.dylib (53.1.1)                   <19BCC257-5717-3502-A71F-95D65AFA861B>  /usr/lib/system/libsystem_malloc.dylib
          0x7fff928ed000 -     0x7fff93144fff  com.apple.CoreGraphics 1.600.0 (775.16)           <864C1845-C41E-314C-A3B4-438DC39E5FBC>  /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
          0x7fff946ee000 -     0x7fff946f7fff  libsystem_pthread.dylib (105.10.1)                <3103AA7F-3BAE-3673-9649-47FFD7E15C97>  /usr/lib/system/libsystem_pthread.dylib
    *0xffffff7f80ddc000 - 0xffffff7f80de4fff  com.apple.kec.pthread 1.0 (1)                     <8365956C-8613-3ED4-BC64-0D8570D2089F>  /System/Library/Extensions/pthread.kext/Contents/MacOS/pthread
    *0xffffff8000200000 - 0xffffff80009fffff  kernel (2782.10.72)                               <DCF5C2D5-16AE-37F5-B2BE-ED127048DFF5>  /System/Library/Kernels/kernel
    Process:         accountsd [250]
    Path:            /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd
    Architecture:    x86_64
    Parent:          launchd [1]
    UID:             501
    Sudden Term:     Clean (allows idle exit)
    Task size:       1856 pages
      Thread 0x90d        DispatchQueue 1     27 samples (1-27)   priority 4
      <thread QoS background, darwinbg, timers coalesced, IO policy utility>
      27  start + 1 (libdyld.dylib + 13769) [0x7fff9094c5c9] 1-27
        27  ??? (accountsd + 2741) [0x10f9d1ab5] 1-27
          27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
            27  __CFRunLoopRun + 1371 (CoreFoundation + 466939) [0x7fff88dc2ffb] 1-27
              27  __CFRunLoopServiceMachPort + 212 (CoreFoundation + 469812) [0x7fff88dc3b34] 1-27
                27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                 *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Thread 0x913        DispatchQueue 2     27 samples (1-27)   priority 4
      <thread QoS background, darwinbg, timers coalesced, IO policy utility>
      27  _dispatch_mgr_thread + 52 (libdispatch.dylib + 19050) [0x7fff8ae3aa6a] 1-27
        27  kevent64 + 10 (libsystem_kernel.dylib + 94770) [0x7fff8f022232] 1-27
         *27  ??? (kernel + 5988368) [0xffffff80007b6010] 1-27
      Binary Images:
             0x10f9d1000 -        0x10f9d1fff  accountsd (504.7)                   <FE573A9B-A4D9-3E08-9F08-D98F65D9E14D>  /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd
          0x7fff88d51000 -     0x7fff890e7fff  com.apple.CoreFoundation 6.9 (1152) <CBD1591C-405E-376E-87E9-B264610EBF49>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          0x7fff8ae36000 -     0x7fff8ae60fff  libdispatch.dylib (442.1.4)         <502CF32B-669B-3709-8862-08188225E4F0>  /usr/lib/system/libdispatch.dylib
          0x7fff8f00b000 -     0x7fff8f028fff  libsystem_kernel.dylib (2782.10.72) <97CD7ACD-EA0C-3434-BEFC-FCD013D6BB73>  /usr/lib/system/libsystem_kernel.dylib
          0x7fff90949000 -     0x7fff9094cfff  libdyld.dylib (353.2.1)             <4E33E416-F1D8-3598-B8CC-6863E2ECD0E6>  /usr/lib/system/libdyld.dylib
    *0xffffff8000200000 - 0xffffff80009fffff  kernel (2782.10.72)                 <DCF5C2D5-16AE-37F5-B2BE-ED127048DFF5>  /System/Library/Kernels/kernel
    Process:         AirPlayUIAgent [267]
    Path:            /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent
    Architecture:    x86_64
    Parent:          launchd [1]
    UID:             501
    Sudden Term:     Clean (allows idle exit)
    Task size:       3098 pages (-4)
    Note:            2 idle work queue threads omitted
      Thread 0x9cc        DispatchQueue 1     27 samples (1-27)   priority 46
      <thread QoS user interactive, IO policy important>
      27  start + 1 (libdyld.dylib + 13769) [0x7fff9094c5c9] 1-27
        27  NSApplicationMain + 1832 (AppKit + 10772) [0x7fff8b662a14] 1-27
          27  -[NSApplication run] + 594 (AppKit + 95635) [0x7fff8b677593] 1-27
            27  -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194 (AppKit + 145200) [0x7fff8b683730] 1-27
              27  _DPSNextEvent + 964 (AppKit + 147329) [0x7fff8b683f81] 1-27
                27  _BlockUntilNextEventMatchingListInModeWithFilter + 71 (HIToolbox + 190123) [0x7fff8d2926ab] 1-27
                  27  ReceiveNextEventCommon + 431 (HIToolbox + 190570) [0x7fff8d29286a] 1-27
                    27  RunCurrentEventLoopInMode + 235 (HIToolbox + 191215) [0x7fff8d292aef] 1-27
                      27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
                        27  __CFRunLoopRun + 1371 (CoreFoundation + 466939) [0x7fff88dc2ffb] 1-27
                          27  __CFRunLoopServiceMachPort + 212 (CoreFoundation + 469812) [0x7fff88dc3b34] 1-27
                            27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                             *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Thread 0x9df        DispatchQueue 2     27 samples (1-27)   priority 46
      <thread QoS user interactive, IO policy important>
      27  _dispatch_mgr_thread + 52 (libdispatch.dylib + 19050) [0x7fff8ae3aa6a] 1-27
        27  kevent64 + 10 (libsystem_kernel.dylib + 94770) [0x7fff8f022232] 1-27
         *27  ??? (kernel + 5988368) [0xffffff80007b6010] 1-27
      Thread 0xa9d        27 samples (1-27)   priority 31
      <thread QoS legacy, IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 140794) [0x1049bd5fa] 1-27
              27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 140854) [0x1049bd636] 1-27
                27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 136854) [0x1049bc696] 1-27
                  27  __psynch_cvwait + 10 (libsystem_kernel.dylib + 90422) [0x7fff8f021136] 1-27
                   *27  psynch_cvcontinue + 0 (pthread + 26908) [0xffffff7f80de291c] 1-27
      Thread 0xa9f        27 samples (1-27)   priority 31
      <thread QoS legacy, IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 128634) [0x1049ba67a] 1-27
              27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 128739) [0x1049ba6e3] 1-27
                27  __psynch_cvwait + 10 (libsystem_kernel.dylib + 90422) [0x7fff8f021136] 1-27
                 *27  psynch_cvcontinue + 0 (pthread + 26908) [0xffffff7f80de291c] 1-27
      Thread 0xaa1        27 samples (1-27)   priority 31
      <thread QoS legacy, IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 124858) [0x1049b97ba] 1-27
              27  ??? (<0717F791-4EAA-3C0F-988E-8B558DCD9916> + 125413) [0x1049b99e5] 1-27
                27  __recvfrom + 10 (libsystem_kernel.dylib + 90938) [0x7fff8f02133a] 1-27
                 *27  hndl_unix_scall64 + 22 (kernel + 2322054) [0xffffff8000436e86] 1-27
                   *27  unix_syscall64 + 662 (kernel + 6599558) [0xffffff800084b386] 1-27
                     *27  recvfrom_nocancel + 234 (kernel + 6439194) [0xffffff800082411a] 1-27
                       *27  ??? (kernel + 6451163) [0xffffff8000826fdb] 1-27
                         *27  soreceive + 2319 (kernel + 6381487) [0xffffff8000815faf] 1-27
                           *27  sbwait + 310 (kernel + 6413318) [0xffffff800081dc06] 1-27
                             *27  msleep + 98 (kernel + 6140770) [0xffffff80007db362] 1-27
                               *27  ??? (kernel + 6141865) [0xffffff80007db7a9] 1-27
                                 *27  lck_mtx_sleep + 134 (kernel + 1292598) [0xffffff800033b936] 1-27
                                   *27  thread_block_reason + 175 (kernel + 1335599) [0xffffff800034612f] 1-27
                                     *27  ??? (kernel + 1345492) [0xffffff80003487d4] 1-27
                                       *27  machine_switch_context + 367 (kernel + 2186783) [0xffffff8000415e1f] 1-27
      Thread 0xab4        27 samples (1-27)   priority 46
      <thread QoS user interactive, IO policy important>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  _NSEventThread + 137 (AppKit + 1602363) [0x7fff8b7e733b] 1-27
              27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
                27  __CFRunLoopRun + 1371 (CoreFoundation + 466939) [0x7fff88dc2ffb] 1-27
                  27  __CFRunLoopServiceMachPort + 212 (CoreFoundation + 469812) [0x7fff88dc3b34] 1-27
                    27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                     *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Binary Images:
             0x100e60000 -        0x100e65fff  com.apple.AirPlayUIAgent 2.0 (215.15) <24B86EE0-207E-3D74-9DE9-3338EA4163B0>  /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent
             0x10499b000 -                ???  ???                                   <0717F791-4EAA-3C0F-988E-8B558DCD9916>
          0x7fff88d51000 -     0x7fff890e7fff  com.apple.CoreFoundation 6.9 (1152)   <CBD1591C-405E-376E-87E9-B264610EBF49>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          0x7fff8ae36000 -     0x7fff8ae60fff  libdispatch.dylib (442.1.4)           <502CF32B-669B-3709-8862-08188225E4F0>  /usr/lib/system/libdispatch.dylib
          0x7fff8b660000 -     0x7fff8c1aafff  com.apple.AppKit 6.9 (1344.72)        <44EF7DEB-3072-3515-9F34-2857D557E828>  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
          0x7fff8d264000 -     0x7fff8d568fff  com.apple.HIToolbox 2.1.1 (757.3)     <D827FC03-5668-3AA4-AF0E-46EEF7358EEA>  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
          0x7fff8f00b000 -     0x7fff8f028fff  libsystem_kernel.dylib (2782.10.72)   <97CD7ACD-EA0C-3434-BEFC-FCD013D6BB73>  /usr/lib/system/libsystem_kernel.dylib
          0x7fff90949000 -     0x7fff9094cfff  libdyld.dylib (353.2.1)               <4E33E416-F1D8-3598-B8CC-6863E2ECD0E6>  /usr/lib/system/libdyld.dylib
          0x7fff946ee000 -     0x7fff946f7fff  libsystem_pthread.dylib (105.10.1)    <3103AA7F-3BAE-3673-9649-47FFD7E15C97>  /usr/lib/system/libsystem_pthread.dylib
    *0xffffff7f80ddc000 - 0xffffff7f80de4fff  com.apple.kec.pthread 1.0 (1)         <8365956C-8613-3ED4-BC64-0D8570D2089F>  /System/Library/Extensions/pthread.kext/Contents/MacOS/pthread
    *0xffffff8000200000 - 0xffffff80009fffff  kernel (2782.10.72)                   <DCF5C2D5-16AE-37F5-B2BE-ED127048DFF5>  /System/Library/Kernels/kernel
    Process:         airportd [30]
    Path:            /usr/libexec/airportd
    Architecture:    x86_64
    Parent:          launchd [1]
    UID:             0
    Task size:       1009 pages
      Thread 0x1b2        DispatchQueue 1     27 samples (1-27)   priority 4
      <thread QoS background, darwinbg, timers coalesced, IO policy utility>
      27  start + 1 (libdyld.dylib + 13769) [0x7fff9094c5c9] 1-27
        27  ??? (airportd + 235530) [0x101b1580a] 1-27
          27  -[NSRunLoop(NSRunLoop) run] + 74 (Foundation + 1466959) [0x7fff8e19a24f] 1-27
            27  -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278 (Foundation + 436297) [0x7fff8e09e849] 1-27
              27  CFRunLoopRunSpecific + 296 (CoreFoundation + 464984) [0x7fff88dc2858] 1-27
                27  __CFRunLoopRun + 1371 (CoreFoundation + 466939) [0x7fff88dc2ffb] 1-27
                  27  __CFRunLoopServiceMachPort + 212 (CoreFoundation + 469812) [0x7fff88dc3b34] 1-27
                    27  mach_msg_trap + 10 (libsystem_kernel.dylib + 70878) [0x7fff8f01c4de] 1-27
                     *27  ipc_mqueue_receive_continue + 0 (kernel + 1165472) [0xffffff800031c8a0] 1-27
      Thread 0x3c3        DispatchQueue 2     27 samples (1-27)   priority 4
      <thread QoS background, darwinbg, timers coalesced, IO policy utility>
      27  _dispatch_mgr_thread + 52 (libdispatch.dylib + 19050) [0x7fff8ae3aa6a] 1-27
        27  kevent64 + 10 (libsystem_kernel.dylib + 94770) [0x7fff8f022232] 1-27
         *27  ??? (kernel + 5988368) [0xffffff80007b6010] 1-27
      Thread 0x458        27 samples (1-27)   priority 4
      <thread QoS background, darwinbg, timers coalesced, IO policy utility>
      27  thread_start + 13 (libsystem_pthread.dylib + 5149) [0x7fff946ef41d] 1-27
        27  _pthread_start + 176 (libsystem_pthread.dylib + 12773) [0x7fff946f11e5] 1-27
          27  _pthread_body + 131 (libsystem_pthread.dylib + 12904) [0x7fff946f1268] 1-27
            27  __select + 10 (libsystem_kernel.dylib + 91130) [0x7fff8f0213fa] 1-27
             *27  ??? (kernel + 6142240) [0xffffff80007db920] 1-27

    Things to check...
    You are using the latest version of drivers/software for your Maschine, Apogee, ADVC-55 and SL MkII devices
    Failing that, Shut down your Mac, unplug all external devices and start up Mac.  Test LPX using internal Audio and Musical Typing Keyboard with new project....
    If that works normally then...
    Delete both Logic's prefs and the CS prefs as detailed here...
    Quit Logic Pro
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove ~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Note:If you cannot find either of these files you did not follow all the steps exactly as described!
    Now...
    Plug in each of your external devices, one at a time.. restarting your Mac each time to ensure which, if any device, is the source of the problem...
    Additional: You may have to install and set up your SL MkII again after deleting the CS (Control Surface)  prefs
    If that doesn't help then as a troubleshooting step....
    Please download Etrecheck from here...
    http://www.etresoft.com/etrecheck
    ..and then launch Logic Pro (But don't load up a project)
    Now run Etrecheck and post up the full report here....
    Thanks...
    Nigel

  • ODI: Can I create join link between the source Files?

    I have a few flat files that has foreign key relationships to each other, and I put them as source files, and try to import data to Essbase from them. and I got the error message: The source data server has no join capacilities. But if I just put all of the informations inside one flat file, the transferring is successful. It seems I cannot put "joins" on the source flat files. Please advise,thanks!

    Hi,
    You can join tables in your source area, even if they are flat files.
    The joins will be done in a staging area, depending on the size of the files and the location of the agent you are running it can define where you want the staging area to be.
    If the files are small and the joins are not complex then it can be done using the memory engine, otherwise in most circumstances I would use the power of a relational engine such as Oracle/SQL server as the staging area.
    Make sure you use a staging area for the interface or you will get the error messages, also on the joins make sure they are done in the staging area, there will be an option when you highlight the join
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Spatial Performance with join

    I have a Oracle Spatial table with 3.5 million rows plus another auxillary table with 3.5 million rows. A query over these two tables joined returns a full result (250 rows) based on one to one join - here's an example:
    Select count(*)
    from F, N
    where F.id = n.id and (F.GEOM,mdsys.sdo_geometry (2003,8307, null, mdsys.sdo_elem_info_array (1,1003,1), mdsys.sdo_ordinate_array(-120.0,49.5,-119.0,49.5,-119.0,60.35,-120.0,60.35,-120.0,49.5)),
    'mask= ANYINTERACT querytype=WINDOW') = 'TRUE') AND N.PNUM = '4';
    It takes an average of 35 seconds to get the full result set back. I've gathered statistics, tweaked memory parameters and this is the best I can get. Does anyone have any suggestions?

    This is an interesting problem. It looks like Oracle is doing the right thing for each of the table accesses - use the index and fetch by rowid.
    The only thing you have to play with if you don't go to materialized views or temp tables is how the results of the two table queries are joined.
    You don't have a lot of options. Hash join seems to be slow, but you don't know if it is faster or slower compared with nested loops or merge join.
    I'd compare what you have done with something like the following to test nested loops:
    select /*+ no_merge use_nl (f1,n1) */ count(*)
    from
    (select id
    from f
    where sdo_anyinteract ( F.GEOM,
    sdo_geometry (2003,8307, null, sdo_elem_info_array (1,1003,1),
    sdo_ordinate_array (-120.0,49.5,-119.0,49.5,-119.0,60.35,
    -120.0,60.35,-120.0,49.5))) = 'TRUE') f1,
    (select id
    from n
    where n.pnum='4') n1
    where f1.id=n1.id ;
    and presort with a merge join hint to see how it performs:
    select /*+ no_merge use_merge (f1,n1) */ count(*)
    from
    (select id
    from f
    where sdo_anyinteract ( F.GEOM,
    sdo_geometry (2003,8307, null, sdo_elem_info_array (1,1003,1),
    sdo_ordinate_array (-120.0,49.5,-119.0,49.5,-119.0,60.35,
    -120.0,60.35,-120.0,49.5))) = 'TRUE'
    order by id) f1,
    (select id
    from n
    where n.pnum='4'
    order by id) n1
    where f1.id=n1.id ;
    It might be that you already have the best Oracle can do, but I'd be curious to know how you make out.
    Dan Abugov
    VP Software Support and Services
    Acquis Inc.

  • Best way to outer join a table that is doing a sub query

    RDBMS : 11.1.0.7.0
    Hello,
    What is the best way to outer join a table that is doing a sub query? This is a common scenario in EBS for the date tracked tables.
    SELECT papf.full_name, fu.description
      FROM fnd_user fu
          ,per_all_people_f papf
    WHERE fu.user_id = 1772
       AND fu.employee_id = papf.person_id(+)
       AND papf.effective_start_date = (SELECT MAX( per1.effective_start_date )
                                          FROM per_all_people_f per1
                                         WHERE per1.person_id = papf.person_id)Output:
    No output produced because the outer join cannot be done on the sub queryIn this case I did a query in the FROM clause. Is this my best option?
    SELECT papf.full_name, fu.description
      FROM fnd_user fu
          ,(SELECT full_name, person_id
              FROM per_all_people_f papf
             WHERE papf.effective_start_date = (SELECT MAX( per1.effective_start_date )
                                                  FROM per_all_people_f per1
                                                 WHERE per1.person_id = papf.person_id)) papf
    WHERE fu.user_id = 1772
       AND fu.employee_id = papf.person_id(+)Output:
    FULL_NAME     DESCRIPTION
    {null}            John DoeThanks,
    --Johnnie                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    BrendanP wrote:
    ... See the adjacent thread for the other with Row_Number().Do you mean {message:id=10564772} ? Which threads are adjacent is always changing. Post a link.
    I think RANK suits the requirements better than ROW_NUMBER:
    WITH    all_matches     AS
         SELECT  papf.full_name
         ,      fu.description
         ,     RANK () OVER ( PARTITION BY  papf.person_id
                               ORDER BY          papf.effective_start_date     DESC
                        )           AS r_num
         FROM             fnd_user             fu
         LEFT OUTER JOIN      per_all_people_f  papf  ON  fu.employee_id  = papf.person_id
         WHERE   fu.user_id  = 1772
    SELECT     full_name
    ,     description
    FROM     all_matches
    WHERE     r_num     = 1
    Johnnie: I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    See the forum FAQ {message:id=9360002}

  • Inner Join resulting in many, many duplicates

    I ran an Inner Join but it returned many, many duplicates. Any idea why that would occur?
    One Answer from a different thread:
    Because you may be having improper Join condition what has a One to many or a Many to many relationship between the tables. We do not have the data, and hence cannot comment over it. However, since the original issue is resolved, I suggest you close this thread and ask the question in another thread.
    What do I look for to identify an improper join?

    Please don't start another discussion for the same issue.
    Continue on your existing thread where the answers and advice you've already been given can be seen, so that people don't end up giving the same advice you've already had.
    Answers on other thread: Inner Join error
    Locking this thread

  • Inner Join - Not Able to get all records

    Hello All,
    I am trying to Inner Join between two tables of employee details. The Join will be done Employee ID, DOB and on name. We will have a constraint to check the first 5 characters of their name (substring). This works and get the exact count on SQL query.
    But when I translate this to SSIS, where I have done a substring with derived column and Merge Join, the count is wrong.
    Join with the employee number and dob - count is same for SQL query and in SSIS
    But when we join with name, its not equal.
    The Issue is with the name, when an employee has 3 or 4 characters of name like 'abc', join is getting ignored in SSIS. Any help to fix this.

    Put Data Viewers on both pipes which are sources for Merge Join and observe the data. Name from one source may be different than Name from other source.
    E.g.  (Tom  ) from first source - 5 letters and (Tom) from second source 3 letters.
    So you should probably try considering TRIM of blank spaces when length of Name is less than 5 letters.
    -Vaibhav Chaudhari

  • Outer join with nested tables

    I am dealing with a nested table (I simplified the case
    for purpose of posting):
    CREATE TABLE boris_main_tab (
    IND_SSN          VARCHAR2(9) PRIMARY KEY,
    children          B_CHILDREN_TBL,
    ) nested table children stored as....
    where B_CHILDREN_TBL is defined like this:
    create or replace type b_children_type as object (
         child_ssn               VARCHAR2(9),
         child_first_name          VARCHAR2(20),
         child_last_name          VARCHAR2(20),
         child_dob               date
    create or replace type b_children_tbl as table of b_children_type;
    if I want to display person's ssn along with his/her children information I do like this:
    SELECT m.ind_ssn, c.child_ssn, c.child_first_name
    FROM boris_main_tab m,
    TABLE(m.children) c
    This is a statement I can find everywhere. But there is a caveat here, they
    forgot to mention. This is really an inner join, so I don't get childless
    people. Can you, guys, help me with the outer join syntax?
    I mean, of course, I found the obvious solution to make this inner join
    into a view and then join it with the boris_main_tab again this time using the
    regular outer join syntax. But it seems to me there has to be something simplier than that.
    But I can't find it. It really hurting me, since I have a few nested table
    columsn and people want to see the records where I need to mention a few of
    them, sort of like
    from boris_main_tab m, TABLE(m.children) c, TABLE(m.spouses) s
    where c.child_last_name <> m.spouse.last_name
    in cases like this the fact that EACH of these joins is inner join really
    hurts the logic.
    Respectfully,
    Boris

    Hi Borris,
    Found the following in the Oracle Documentation under: Oracle8i Application Developer's Guide - Object-Relational Features Release 2 (8.1.6)
    2 Managing Oracle Objects / Using Collections / Collection Unnesting
    URL: http://www.znow.com/sales/oracle/appdev.816/a76976/adobjmng.htm#1002885
    Oracle8i also supports the following syntax to produce outer-join results:
    SELECT d.*, e.* FROM depts d, TABLE(d.emps)(+) e;
    The (+) indicates that the dependent join between DEPTS and D.EMPS should be NULL-augmented. That is, there > will be rows of DEPTS in the output for which D.EMPS is NULL or empty, with NULL values for columns
    corresponding to D.EMPS.

  • Error in result set from join query

    I get a SQL exception from the JDBC thin driver when I make a getXXX( "string" ) call on a result set object when the query is a join. Aliases don't seem to help.
    Below is the stack trace.
    Anybody have any ideas?
    matt
    ResultSet.findColumn
    java.sql.SQLException: Invalid column name: get_column_index
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:427)
    at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java, Compiled Code)
    at oracle.jdbc.driver.OracleResultSet.findColumn(OracleResultSet.java:680)
    at person.PersonMgr.getForEdit(PersonMgr.java:114)
    at person.PersonMgr.getForView(PersonMgr.java:168)
    at person.PersonMgr.getPersonForView(PersonMgr.java:164)
    at nwsession.NWSession.login(NWSession.java:224)
    at jsp.dologin._jspService(dologin.java:241)
    at com.livesoftware.jsp.HttpJSPServlet.service(HttpJSPServlet.java:31)
    at com.livesoftware.jsp.JSPServlet.service(JSPServlet.java:129)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
    at com.livesoftware.jrun.JRun.runServlet(JRun.java, Compiled Code)
    at com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
    at com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JRunProxyServiceHandler.java, Compiled Code)
    at com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.java, Compiled Code)

    Your reference to NS.REQDATE is too deep. Oracle will only allow you to reference a column from the main query one level deep.
    I think you can just change that query into this:
    (Select AVG(((cpath.REQUESTDATETIME)- NS.REQDATE)*1440) AvgTime
    FROM usersessiondetails cpath
    Where cpath.Userkey=(Select Userkey from ods_user where userid=NS.UserId and namespace=NS.Namespace)
       and cpath.acctnum=aCCTNUM
       and cpath.transactionname IN (AUTH_LOGOFF' )
       and cpath.REQUESTDATETIME = NS.REQDATE )You do not need the extra query level to do the AVG.

  • Stop forcing upgrades

    I have been forced, by repeated interruptions to my work telling me that software had been downloaded, to upgrade Adobe Reader through two steps, first to 9.3.1 then to 9.3.2. This is a pure pain because I do not use Reader, having switched to Preview precisely because I was fed up with the constant "upgrades". In this case I was forced to use Reader by a customized document I was sent to review. The "upgrades", first to 9.3.1 then to 9.3.2, continually interrupted my work until I gave in a tried to install them. 9.3.2 crashed my Macbook twice refusing even to allow a soft restart or shutdown. Finally I was forced to navigate through the Adobe website to find and install the "upgrade". It cost me more than an hour, lost concentration to say nothing of the anger and frustration. Why are you wasting users time and sending out stuff that does not work (just look for this forum to see how much unnecessary grief this is causing people). Just STOP doing this: ONLY send small upgrades when security issues make it unavoidable. Otherwise offer upgrades and give good reasons why users should choose them. I don't care whether you publish this on your forum; I just want you to know that this kind of behavior convinces users to abandon your products as I did. WHY do you do it?

    Thanks for your kind suggestion.
    Ursprüngliche Nachricht----
    Von: [email protected]
    Datum: 15.05.2010 04:24
    An:
    "Andrew Matus"<[email protected]>
    Betreff: stop forcing upgrades
    Since you don't use Adobe Reader, the
    easiest way to stop the updates is to uninstall it.

  • Datawindow graphical syntax outer join BUG

    Ok, so this is a bug report.  I don't know where i'm supposed to post it for SAP (i do have support).
    The outer join syntax is ansi.
    Using the graphical SQL designer, outer joins are incorrectly written by powerbuilder.  This has been going on ever since ANSI style outer join sytax was added (PB 9?).
    I think it has to do with the datawindow's use of both right and outer joins and its lack of use of inner joins.  The end result is that we have to rewrite a lot of stuff in sql since powerbuilder is generating bad sql.
    The typical example is the use of 2 or more outer joins where the joins are being done using 2 or more columns.
    PB will create both a LEFT and a RIGHT outer join by duplicating the table name.  The table (receive) is only selected ONCE in the sql graphical designer.
    And this is the result:
    Microsoft SQL Native Client
    The objects "receive" and "receive" in the FROM clause have the same exposed names. Use correlation names to distinguish them.
    Do you want to correct errors?
    I would love to see the datawindow sql corrected and written in a more standard way.
    1 change the OUTER JOIN syntax in the db profile setup to indicate the syntax.  not outer join, but syntax.  If you select ANSI have it write ALL joins using JOIN ( from ta join tb on ta.col = tb.col) intead of from tablea, tableb where tablea.col = tableb.col
    2 - eliminate the use of right outer joins.
    At that point i believe that the datawindow could more easily be fixed by SAP to not duplicate tables when in generates the syntax.

    If you have an Oracle Support agreement you can log a Service Request with Oracle, but they may respond that it is not really a bug. The problem is that the "outer" keyword in your 3rd example is being treated as an alias for TABLE_A because it is not considered a reserved keyword.
    with table_a as (
    select 1 as id, 'abc' as value_a from dual union all
    select 2 as id, 'def' as value_a from dual union all
    select 3 as id, 'ghi' as value_a from dual
    , table_b as (
    select 2 as id, 'jkl' as value_b from dual union all
    select 3 as id, 'mno' as value_b from dual union all
    select 4 as id, 'pqr' as value_b from dual
    select ID, outer.VALUE_A, VALUE_B from TABLE_A outer join TABLE_B using (ID);
    ID                     VALUE_A VALUE_B
    2                      def     jkl
    3                      ghi     mnoIf you query the V$RESERVED_WORDS view it will tell you which keywords are reserved.
    select * from V$RESERVED_WORDS where keyword in ('OUTER', 'SELECT','USING');
    KEYWORD                        LENGTH                 RESERVED RES_TYPE RES_ATTR RES_SEMI DUPLICATE
    USING                          5                      N        N        N        N        N
    OUTER                          5                      N        N        N        N        N
    SELECT                         6                      Y        N        N        N        NYou would get a similar result if you tried
    select ID, VALUE_A, VALUE_B from TABLE_A using join TABLE_B using (ID);Regards,
    Bob

Maybe you are looking for