SELECT '进价' 价格类型, JHMXB.DJ as 单价, JHDDB.LDRQ as 日期, JHDDB.DJBH as 单据编号, JHDDB.ZY as 摘要, JHDDB.JSR as 经手人, JHMXB.DJ*JHMXB.SL as 金额
FROM JHMXB, JHDDB
WHERE JHDDB.DJBH = JHMXB.DJBH and 0=1
UNION
SELECT '售价' 价格类型, XSDDMXB.XSDDMXDJ, XSDDB.XSDDLDRQ as 日期, XSDDMXB.XSDDMXDJBH, XSDDB.XSDDZY, XSDDB.XSDDJSR, XSDDMXB.XSDDMXDJ*XSDDMXB.XSDDMXSL as 金额
FROM XSDDMXB, XSDDB
WHERE XSDDB.XSDDDJBH = XSDDMXB.XSDDMXDJBH and 0=1
SELECT '进价' 价格类型, JHMXB.DJ as 单价, JHDDB.LDRQ as 日期, JHDDB.DJBH as 单据编号, JHDDB.ZY as 摘要, JHDDB.JSR as 经手人, JHMXB.DJ*JHMXB.SL as 金额
FROM JHMXB, JHDDB
WHERE JHDDB.DJBH = JHMXB.DJBH and 0=1
最初由 atiger 发布
[B]SELECT '进价' 价格类型, JHMXB.DJ as 单价, JHDDB.LDRQ as 日期, JHDDB.DJBH as 单据编号, JHDDB.ZY as 摘要, JHDDB.JSR as 经手人, JHMXB.DJ*JHMXB.SL as 金额
FROM J..