Here is the Query "select count(distinct thor.PickTicketId) as 'Shipments', ActualShipMethod from thor.prod.PickTicketDetail thor inner join flashbidata.bi.order_items_mart flash on thor.MerchantOrderId = flash.merchant_order_id where slowdown_config_shipping_cost > 0 and ShippedDate >= '08-01-2018' group by ActualShipMethod order by 1 desc"