Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 15th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. select o.object_userid as "Unit",
  2.        userid(a.cb_id)     as "CB"
  3.        ,userid(c.cb_id)     as "CB2"
  4.        
  5.        
  6.        from
  7. objrep o
  8. left join objecttobusbar a on (a.object_id = o.object_id)
  9. left join objecttobusbar c on (c.object_id = o.object_id AND a.cb_id <> c.cb_id)
  10.        WHERE o.object_type = 'UNIT';