| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: SQL query for joining results of queries
>
> Beware: Fieldnames in the queries must be different, except for C. If
> this is not acceptable, you must add a join condition rather than
> making it NATURAL.
If NATURAL keyword is not supported by your DBMS, you also need to add
join conditions.
Note: You must use coalesce functions in second and subsequent join
conditions.
Like this:
SELECT coalesce(t1.c,t2.c,t3.c)
,"Count_in_T_1"
,"Count_in_T_2"
,"Count_in_T_3"
![]() |
![]() |