Foxers I have a table like below:
ShopNO TicketNO ItemNO TicketTotal ItemTotal 01 001 01 100.50 25.50 01 001 02 100.50 75.00 02 005 01 32.00 15.00 02 005 02 32.00 10.00 02 005 03 32.00 7.00 I have write a SELECT command to sum "TicketTotal" grouping by "ShopNo" with distinct values of "TicketTotal" based on "ShopNo" and "TicketNO". I cannot use "ItemTotal", because in some records this column is null. Can someone help me with this syntax ? -- 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 _______________________________________________ Post Messages to: ProFox@leafe.com 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.