select
ol.Order_Number as SO, ol.Order_Line_Number as Line, ol.Style, ol.Customer,
CONVERT(varchar(10), CONVERT(datetime, ol.Date_Created), 103) as Entered,
CONVERT(varchar(10), CONVERT(datetime, ol.Delivery_Date), 103) as Delivery_Date,
ol.Sales_Price as Price, ol.Total_Ordered as Ordered, ol.Total_Outstanding as Outstanding, ol.Total_Cancelled as Cancelled, ol.PO_Number as PO,
ol.Customer_s_Order_Number as CustPO
from order_lines11 as ol
left outer join stk_aud5 as sa on ol.PO_Number = sa.Order_No and ol.Style = sa.Style
where
Total_Outstanding > '0'
and ol.Delivery_Date < '20110101'
and ol.New_Order_Type = 'F'
order By ol.Customer, ol.Order_Number