Subject | Re: Combine 2 tables |
---|---|
Author | a_broekhuis |
Post date | 2004-06-07T12:56:55Z |
--- In firebird-support@yahoogroups.com, "Arno Brinkman"
<firebird@a...> wrote:
...
<firebird@a...> wrote:
...
> > How can i do this?Thx, that is what i need.
>
> Just cast a literal value or NULL to the same datatype :
>
> SELECT
> SomeName AS Field1,
> SomeOtherStuff AS Field2
> FROM
> Table1
> UNION ALL
> SELECT
> OtherName,
> CAST(NULL AS VarChar(35))
> FROM
> Table2
>
> Regards,Alexander
> Arno Brinkman
> ABVisie
>