Bug #41427 | Subquery cannot access field from two levels up | ||
---|---|---|---|
Submitted: | 12 Dec 2008 11:34 | Modified: | 12 Dec 2008 13:02 |
Reporter: | Arjen lastname | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S4 (Feature request) |
Version: | 5.0.67 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[12 Dec 2008 11:34]
Arjen lastname
[12 Dec 2008 11:35]
Arjen lastname
I forgot the expected result, this is what PostgreSQL sais: id | datamax ----+--------- 1 | 5 2 | 6 3 | 8
[12 Dec 2008 12:06]
Valeriy Kravchuk
I've got the same error message on 5.0.72, 5.1.30 and 6.0.8, but it looks like a documented limitation (http://dev.mysql.com/doc/refman/5.0/en/unnamed-views.html): "Subqueries in the FROM clause cannot be correlated subqueries, unless used within the ON clause of a JOIN operation."
[12 Dec 2008 12:52]
Arjen lastname
Well, its a query-type I've used more often, and know of others have tried using. So I'd like it as a feature (since its afaik allowed in sql:2003).
[12 Dec 2008 13:00]
Valeriy Kravchuk
Surely, it would be nice to have this implemented.
[12 Dec 2008 13:02]
Valeriy Kravchuk
Actually, it looks like a duplicale of bug #8019.