我得到了下面的查询,但是当我执行它时,我得到了一个错误-- #1054 - Unknown column 'adress' in 'where clause',我想知道为什么?当我删除where子句时,它通常以列的形式出现,不知道为什么会抛出错误。piorytet.id ON zlec.status_zlecenia = zlec_status.id
WHERE
我有一个具有多个连接的子查询。子查询中的where子句用于其中一个连接,我已将该字段/列添加到外部select语句中,没有任何问题。我的问题是,我需要在子查询中包含来自其他连接之一的字段/列。只需将其添加到外部select语句中,就会出现“无法绑定”错误。下面是我的子查询: from ContactNam
我在找一个答案其实是 select DISTINct A.[Product] as A
where EXISTS(select B.ParentProductCategoryID from [SalesLT].[ProductCategory] as B where A.ProductCategoryID=B.ProductCatego
(由于公司策略,我对列和其他标识符进行了概括),在当前状态下,根据负载运行该SQL需要1到2分钟的时间。VKTINFO表包含约100万条记录,GNTINFO表包含约300万条记录。nad_account_number and nad_name_type='HA' and history_expiration_date=nad_history_expir