select city a, teamName from baseball
union
select * from ( SELECT city a, teamName FROM baseball) as table
go
select * from baseball
union
select * from ( SELECT * FROM baseball union SELECT * FROM baseball) as table
go
select JSON * from baseball
union all
select JSON * from (SELECT JSON * FROM baseball ) as table
go
select * from baseball
union all
select * from (SELECT * FROM baseball ) as table
go
select Flatten_array * from baseball
union all
select Flatten_array * from (select Flatten_array * from baseball ) as table
go
All the five queries work fine now.
Tested on Aqua Data Studio 14.0.0-beta-23 Build #: 32874 on Ubuntu 12.04( Mongo DB 2.4.3) and Windows XP ( Mongo DB 2.0.9).
Statements 2,4,5 give errors: 2,4 - "different number of columns" and 5- "dupplicate keys"
Tested on Aqua Data Studio 14.0.0-beta-23 Build #: 32874 on Ubuntu 12.04( Mongo DB 2.4.3) and Windows XP ( Mongo DB 2.0.9).
Statements 2,4,5 give errors: 2,4 - "different number of columns" and 5- "dupplicate keys"
Tested on Aqua Data Studio 14.0.0-beta-33 Build #: 32981 on Ubuntu 12.04( Mongo DB 2.4.3) and Windows XP ( Mongo DB 2.0.9).
I had a test case which caused "different number of columns". It is due to not standard type of _id column. I prepare test scripset:
insert into unioncoll values({_id:{"right":1,"left":2}})
go
Tested on Aqua Data Studio 14.0.0-beta-33 Build #: 32981 on Ubuntu 12.04( Mongo DB 2.4.3) and Windows XP ( Mongo DB 2.0.9).
I had a test case which caused "different number of columns". It is due to not standard type of _id column. I prepare test scripset:
insert into unioncoll values({_id:{"right":1,"left":2}})
go
These queries become invalid because the support for sub-queries on the FROM clause has been disabled (see issue #9420).
These queries become invalid because the support for sub-queries on the FROM clause has been disabled (see issue #9420).
Issue #8728 |
Closed |
Invalid |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
1 issue link |
is broken by #9420
Issue #9420Temporary collection created by the program for FROM(SELECT stays in the DB |
All the five queries work fine now.