Bug #1675 | select from ((select....) union all (select...)) group by.... | ||
---|---|---|---|
Submitted: | 27 Oct 2003 6:54 | Modified: | 27 Nov 2005 11:25 |
Reporter: | Mike Nix | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 4.1.0 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[27 Oct 2003 6:54]
Mike Nix
[27 Nov 2005 11:25]
Valeriy Kravchuk
Thank you for a featurte request. You can do selects similar to what you wanted in MySQL 5.0.x: mysql> select count(*) from ((select 1 a from t1) union all (select 2 from t1)) t; +----------+ | count(*) | +----------+ | 2 | +----------+ 1 row in set (0.18 sec) mysql> select version(); +-----------+ | version() | +-----------+ | 5.0.15-nt | +-----------+ 1 row in set (0.03 sec)