SELECT 
'Order shipping' title,
s.shipping_description text, 
s.base_shipping_amount value, 
'ot_shipping' class, 
1 sort_order
FROM 
sales_flat_order s 
where 
s.entity_id = <@ORDERS_ID@> and 
s.shipping_amount <> 0

union
SELECT 
'Order total' title,
'Order total' text, 
s.grand_total  value, 
'ot_total' class, 
2 sort_order
FROM 
sales_flat_order s 
where 
s.entity_id = <@ORDERS_ID@>

union
SELECT 
'Order discount' title,
'Order discount' text, 
0 value, 
'ot_discount' class, 
3 sort_order
FROM 
sales_flat_order s  
where 
s.entity_id = <@ORDERS_ID@> and 
s.discount_amount <> 0

union
SELECT 
'Coupon discount' title,
s.coupon_code text, 
s.base_discount_amount value, 
'ot_coupon' class, 
4 sort_order
FROM 
sales_flat_order s  
where 
s.entity_id = <@ORDERS_ID@> and 
s.discount_amount <> 0
