You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The well-known "count-bug" is not specific to the count aggregate, and outer-join does not solve it.
The anomaly can occur on any aggregate function; aggregates need modification to distiguish empty set from null values; and optimizing out the outerjoin depends on utilization context
The text was updated successfully, but these errors were encountered:
Describe the bug
For cases similar to the well-known "count-bug", the correlated subquery returns the incorrect result.
To Reproduce
Expected behavior
Subqueries with no matches should return 'b' instead of null.
Additional context
What is count-bug: Optimization of Nested SQL Queries Revisited
A paper describing this issue: Parameterized ueries and Nesting Equivalences
The text was updated successfully, but these errors were encountered: