【发布时间】:2023-03-03 21:34:01
【问题描述】:
众所周知,RedShift 有一组相关的子查询,它可以去相关,从而使查询运行得更快。
为什么 Redshift 不能去关联常见的 DOES NOT EXIST 子查询?例如,下面的查询基本上是:
SELECT ProductID,
ProductName
FROM Products p
WHERE NOT EXISTS (SELECT *
FROM [Order Details] od
WHERE p.ProductId = od.ProductId)
有人能解释一下为什么 Redshift 不能去关联这个查询吗?
【问题讨论】:
标签: sql amazon-redshift