Subject | RE: [firebird-support] Combine 2 tables |
---|---|
Author | Alan McDonald |
Post date | 2004-06-07T12:11:37Z |
> You can do that with UNION ALL :Won't that give him all the nulls as well?
>
> SELECT
> SomeName AS Field1,
> SomeOtherStuff AS Field2
> FROM
> Table1
> UNION ALL
> SELECT
> OtherName,
> SomeOtherStuff
> FROM
> Table2
>
> NOTE! If both fields from table1 and table2 have a different
> datatype/length
> then you must cast 1 of them to the same datatype/length as the other one.
>
> Regards,
> Arno Brinkman
> ABVisie
Alan