query 1
select *
from shipment
where bol_no is not null and receive_date is null and status_code <> 'R'
query 2
(select *
where shipment.order_no = ordhead.order_no
and status = 'A')
i want to get all data from both queries.
do i do a union or union all? i get an error
select *
from shipment
where bol_no is not null and receive_date is null and status_code <> 'R'
query 2
(select *
where shipment.order_no = ordhead.order_no
and status = 'A')
i want to get all data from both queries.
do i do a union or union all? i get an error