Many thanks for your query, seems we need to group it like Wolfgang's does.
Willy On Thu, 2009-09-03 at 22:33 -0700, Manasi Save wrote: > may be you can use IN clause: > > SELECT SUM(price)*0.5 AS price1, SUM(price)*0.65 AS price2 FROM table > WHERE partner IN ('A', 'B'); > -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=arch...@jab.org