Ailsom, I think I understand what you mean now on second reading of your emails.
Am I right in saying that the total you want to see against Shop 01 using your data is in fact 100.50 because there is as duplicate record for Shop 01, Ticket 01 which you want to ignore in the totalling? If so I'll give it another go. Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ailsom F. Heringer (Osklen) Sent: 09 March 2007 14:22 To: [email protected] Subject: Re: SUM + GROUP BY ??? Andy Davies escreveu: > Dave Crozier said "The Null value is not a problem if you use NVL()" > also not a problem with sum/ total/ &c. - > see this link posted earlier today: > http://weblogs.foxite.com/andykramek/archive/2005/12/04/1016.aspx > > Andrew Davies MBCS CITP > - AndyD 8-)# Ok ! But its a problem in this case. The "item_total" column has wrong values. It should not have null values. -- Aílsom F. Heringer [EMAIL PROTECTED] Skype: ailsom.osklen Analista de Sistemas ---------------------------------- Osklen Departamento de Informática Rio de Janeiro - RJ BRASIL http://www.osklen.com.br 55 21 22198971 [excessive quoting removed by server] _______________________________________________ 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 ** 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.

