DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Analytical qry help

Threaded View

  1. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    No analytic function required ...

    Code:
    Select lo_id,
           count(Distinct so_id) so_id#,
           count(distinct mo_id) mo_id#
    From   t1
    group by
           lo_id
    Edit: Oh, no I misunderstood the question.
    Tamil's sol'n looks like the right approach
    Last edited by slimdave; 03-01-2005 at 01:21 PM.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width