我正在运行一个简单的查询,如下所示:
SELECT Administrator_TRANSACTIONS.TRANSACTION_TYPE,
Administrator_TRANSACTIONS.TRANID
FROM Administrator_TRANSACTIONS, Administrator_TRANSACTION_LINES, Administrator_ITEMS
WHERE (((Administrator_TRANSACTIONS.TRANSACTION_TYPE)="Sales Order") AND
((Administrator_TRANSACTIONS.TRANID)="379"));
表中只有该条件的记录/行。但是,这导致多行结果与下面相同。你能帮忙解决为什么会这样吗?
答案 0 :(得分:1)
您选择的表太多了。只需使用您需要的表格:
SELECT Administrator_TRANSACTIONS.TRANSACTION_TYPE,
Administrator_TRANSACTIONS.TRANID
FROM Administrator_TRANSACTIONS
WHERE (((Administrator_TRANSACTIONS.TRANSACTION_TYPE)="Sales Order") AND
((Administrator_TRANSACTIONS.TRANID)="379"));