i found a query where to find out the sum prices per shop name group by customer name using a query like this
round(sum(case when replace (shop_name,\'LOCAL\',\'\')=\'ama