No analytic function required ...
Edit: Oh, no I misunderstood the question.Code:Select lo_id, count(Distinct so_id) so_id#, count(distinct mo_id) mo_id# From t1 group by lo_id
Tamil's sol'n looks like the right approach
|
Results 1 to 3 of 3
Thread: Analytical qry helpThreaded View
|
Click Here to Expand Forum to Full Width |