I'm not getting proper result from this query.
SELECT Qty as op,
0 as secunit
FROM tbl_master
WHERE tb_sno = 1
UNION
SELECT main_qty as op,
main_unit as secunit
FROM purchase
WHERE tb_sno = 1
AND TRN_DATE < #2011/05/14#
AND trn_sno2 <> 0
This show less one record from actual. is there any way to get actual result