在以下基于 SAGE 数据库的查询中,我似乎遇到了 MS Access 问题
以下代码不起作用 - 它不喜欢“不喜欢”部分
SELECT tran_number, Inv_ref, Details, date, Net_amount, amount_paid
FROM AUDIT_HEADER
WHERE type = 'BP' and
deleted_flag= 0 and details NOT like "*WAGES*"
这段代码确实有效,但速度很慢,当我将它链接到 excel 时不起作用 -
预期参数 = 1 错误??
SELECT tran_number, Inv_ref, Details, date, Net_amount, amount_paid
FROM AUDIT_HEADER
WHERE type = 'BP' AND deleted_flag= 0 and
details NOT IN (SELECT details from audit_header where details like "*WAGES*");
此外,奇怪的是,这段代码有效,但显然,我想排除细节中包含 WAGES 的交易
SELECT tran_number, Inv_ref, Details, date, Net_amount, amount_paid
FROM AUDIT_HEADER
WHERE type = 'BP' and
deleted_flag= 0 and details like "*WAGES*"