访问SQL语法错误

时间:2015-11-11 09:11:46

标签: sql ms-access ms-access-2010

我的问题是我在MS Access 2010中有一个代码会引发语法错误。这是一个查询代码。

select distinct Daily_Output20151013.[Lot No], atabla.[Outgoing date] as ext1date, btabla.[outgoing date] as plg1date, ctabla.[outgoing date] as str1date
from (((Daily_Output20151013
inner join (select Daily_Output20151013.[lot no] 
from (Daily_Output20151013.[outgoing date] 
where Daily_Output20151013.[Process Pattern] = 'a') as atabla on Daily_Output20151013.[Lot No] = atabla.[Lot No])
inner join (select [lot no], [outgoing date] from Daily_Output20151013     
where Daily_Output20151013.[Process Pattern] = 'b') as btabla on Daily_Output20151013.[Lot No] = btabla.[Lot No])
inner join (select [lot no], [outgoing date] from Daily_Output20151013
where Daily_Output20151013.[Process Pattern] = 'c') as ctabla on 
Daily_Output20151013.[Lot No] = ctabla.[Lot No])

Daily_Output20151013是一个现有的表,atabla,btabla和ctabla是尚不存在的表,我需要它们用于查询。 传出日期和拍卖号也存在。

  • 我已经完成了@GorezTrol为我提供的内容,但它仍然会引发语法错误:''FROM'中的语法错误

提前感谢您的回答。

0 个答案:

没有答案