我正在为我的作业在 Access 2010 中编写 SQL 语句。我想做的是Display the Client Number, Client Name, Bookkeeper Number, First Name, and Last Name for
all clients. Sort the records in ascending order by bookkeeper number and client number
. 这就是问题要问我的。但是当我去写语句时,我收到一个错误,说簿记员编号可以引用 from 子句中的多个表。我怎么能解决这个问题?
这是我到目前为止尝试过的
select C.[client number], C.[client name], C.[bookkeeper number], B.[firstname]
from [client] C, [bookkeeper] B
order by [bookkeeper number], [client number] ASC;