zhouqingqing / qpmodel

A Relational Optimizer and Executor
MIT License
66 stars 18 forks source link

Aggregates in subquery where #259

Closed pkommoju closed 3 years ago

pkommoju commented 3 years ago

Support for Aggregates in WHERE of subqureies with outer reference (code review request only) A subquery can contain an aggregate in selections, where, group by and having, if all column references contained in in are outer references. From IWD 9075-2:201?(E), draft standard, 2011-12-21 Section 7.8 WHERE. Syntax rule (SR) 1: WHERE Section 7.10 HAVING. SR 3 10.9.6 Conformance rules. section 77 1) If a directly contained in the is a , then the shall be contained in a or