Ms access使用join访问Query错误

时间:2015-07-21 11:26:25

标签: ms-access

我有ms访问查询的问题。 我在查询中选择了2个表:table1有2个项目,table2有3个项目,两者都与billno连接但是当我在查询中构建查询时,这变为like this

SELECT
  productionpurchase.PurchNo,
  productionpurchase.Medicine AS PpurchMedi,
  productionpurchase.Qty AS PPurchqty,
  productionpurchase.Price AS PpurchTP,
  productionpurchase.Srate AS PpurchRP,
  productionpurchase.Desc AS PpurchDesc,
  production.desc,
  production2.ExtraQty,
  production.*
FROM (productionpurchase
  INNER JOIN production ON productionpurchase.PurchNo = production.BillNo)
  INNER JOIN production2 ON productionpurchase.PurchNo = production2.BillNo;

0 个答案:

没有答案