How do, thank you for help, here is the statement: -
Select product AS 'PRODUCT', total = count(all transaction_type), Quantity=sum(movement_quantity), warehouse AS 'WAREHOUSE' from strip
where warehouse = 'S1'
and transaction_type != 'ADJ'
and transaction_type != 'TRAN'
and transaction_type != 'SCRP'
and transaction_type != 'BINT'
and transaction_type != 'SRET'
and transaction_type != 'DESP'
group by product, warehouse
order by total
And below is an example of what I am getting returned. It is the quantity column that I need trimming! Cheers.
Quantity Warehouse
-----------------------------------------------
45 S1
12 S1
12
12
For example! Any Ideas
Select product AS 'PRODUCT', total = count(all transaction_type), Quantity=sum(movement_quantity), warehouse AS 'WAREHOUSE' from strip
where warehouse = 'S1'
and transaction_type != 'ADJ'
and transaction_type != 'TRAN'
and transaction_type != 'SCRP'
and transaction_type != 'BINT'
and transaction_type != 'SRET'
and transaction_type != 'DESP'
group by product, warehouse
order by total
And below is an example of what I am getting returned. It is the quantity column that I need trimming! Cheers.
Quantity Warehouse
-----------------------------------------------
45 S1
12 S1
12
12
For example! Any Ideas