0
我有一个表叫用户和另一个名为门票两个表,并试图从另一个表访问信息
users表中有
id
firstName
lastName
票表具有以下字段
id
ticket
issuedTo
fine
user (numeric id that corresponds to the id field of the user table)
status
我试图设计一个查询,我可以找到由特定人员创建的所有查询
SELECT tickets.*, user.firstname, user.lastname FROM tickets WHERE tickets.user INNER JOIN user.id AND user.firstname="John" AND user.lastname="Doe"
我试过以上,但没有工作,所以一定有什么问题,我的SQL查询。请帮助
我使用的是Microsoft Access数据库2007
我认为最后一行有可能是你的问题。 – 2012-04-12 14:22:42
LoL ... Microsoft Access非常糟糕,但这是我被迫使用的工具。 – 2012-04-12 14:28:39
ouch完全停止。 – 2012-04-12 14:29:21