Hi This will work but with repeated values.
select distinct nvl(Pos.Client,spac(10)) as PosClie,; nvl(Pos.SldVal,0000.00) as PosVal,; nvl(Neg.Client,spac(10)) as NegClie, nvl(Neg.SldVal,0000.00) as NegVal; from sTmp; left join sTmp Pos on Pos.SldVal > 0.00; left join sTmp Neg on Neg.SldVal < 0.00; order by 1,3 into cursor sRel E. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18-Feb-08 05:50 _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

