Can anyone help? the query I am working with works fine: -
Select distinct TotalReceipts = count(all transaction_type), warehouse AS 'WAREHOUSE' from strip
where warehouse = 'S1'
and TRANSACTION_TYPE = 'issu'
AND DATED > '2000-08-01'
group by warehouse
but when I add an extra request: -
Select distinct TotalReceipts = count(all transaction_type), warehouse AS 'WAREHOUSE' from strip
where warehouse = 'S1'
and TRANSACTION_TYPE = 'issu'
and TRANSACTION_TYPE = 'recp'
AND DATED > '2000-08-01'
group by warehouse
I dont get a result. Do I need to include a subquery for the second and statement, if so why?
Select distinct TotalReceipts = count(all transaction_type), warehouse AS 'WAREHOUSE' from strip
where warehouse = 'S1'
and TRANSACTION_TYPE = 'issu'
AND DATED > '2000-08-01'
group by warehouse
but when I add an extra request: -
Select distinct TotalReceipts = count(all transaction_type), warehouse AS 'WAREHOUSE' from strip
where warehouse = 'S1'
and TRANSACTION_TYPE = 'issu'
and TRANSACTION_TYPE = 'recp'
AND DATED > '2000-08-01'
group by warehouse
I dont get a result. Do I need to include a subquery for the second and statement, if so why?