Sharing the SQL query and the actual vs expected output below
SELECT date, source, Sum(total_cost) as total_cost, CASE WHEN (order_name) like \'%I