由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - error of sql query in MS Access database
相关主题
SQL combine two tables into one table and add a new columnsql的2个问题
请教一道算法题目,请高手指点SQL check likeness between two large tables (转载)
求教一个SQL的问题sort two same tables SQL but different results (转载)
SQL copy a table into a new table and add a new column (转载)Error of SQL query on IBM netezza SQL database from Aginity workbench
error of executing SQL query of string concatenation (转载五月份免费SQL培训时间
请教SQL问题请教SQL Query 面试题
error run SQL query from pyodbc python 3.2.5 (转载)问一个SQL题,用variable找consecutive number
被一个面试题卡的泪流满面 SQLSQL 面试题 - 请高手指点
相关话题的讨论汇总
话题: select话题: access话题: ms话题: where话题: query
进入JobHunting版参与讨论
1 (共1页)
l******9
发帖数: 579
1
I need to do a sql query in MS Access 2012.
But I got error in MS Access:
SELECT *
FROM
(
SELECT *
FROM table1
where not exists
(
SELECT *
FROM table2
where table2.id = table1.id
) as t
) as t1, table3
where table3.id = t1.id
Syntax error: (missing operator) in query expression 'not exists ( ... ) as
t'
Any help would be appreciated.
c*****o
发帖数: 1702
2
table1的where clause的column name没有
d*********0
发帖数: 12
3
table1 和 table2 的schema必须一致, 如果用*, 两表结构可能(column)不一致,出错.
c*****d
发帖数: 6045
4
-- not exists的subquery不要alias
SELECT *
FROM
(
SELECT *
FROM table1
where not exists
(
SELECT *
FROM table2
where table2.id = table1.id
)
) as t1, table3
where table3.id = t1.id
1 (共1页)
进入JobHunting版参与讨论
相关主题
SQL 面试题 - 请高手指点error of executing SQL query of string concatenation (转载
leetcode的通过率请教SQL问题
change year format in Access by SQL query (转载)error run SQL query from pyodbc python 3.2.5 (转载)
问个SQL query被一个面试题卡的泪流满面 SQL
SQL combine two tables into one table and add a new columnsql的2个问题
请教一道算法题目,请高手指点SQL check likeness between two large tables (转载)
求教一个SQL的问题sort two same tables SQL but different results (转载)
SQL copy a table into a new table and add a new column (转载)Error of SQL query on IBM netezza SQL database from Aginity workbench
相关话题的讨论汇总
话题: select话题: access话题: ms话题: where话题: query