Skip to main content
Inspiring
April 2, 2007
Question

SQL JOIN type question

  • April 2, 2007
  • 2 replies
  • 271 views
If I want to take 2 tables and combine them into one output, which JOIN do I
use? Both table's columns have the same name (EMPLOYEE).

Table 1 Table2
EMPLOYEE EMPLOYEE
Emp1 Emp4
Emp2 Emp5
Emp3 Emp6

to get and output of:

Emp1
Emp2
Emp3
Emp4
Emp5
Emp6

I am drawing a complete blank


This topic has been closed for replies.

2 replies

Inspiring
April 2, 2007
Thanks!

"Jochem van Dieten **AdobeCommunityExpert**" <nomail@devnull.invalid> wrote
in message news:eurh7p$qpd$1@forums.macromedia.com...
> Wally Kolcz wrote:
>> If I want to take 2 tables and combine them into one output, which JOIN
>> do I use? Both table's columns have the same name (EMPLOYEE).
>>
>> Table 1 Table2
>> EMPLOYEE EMPLOYEE
>> Emp1 Emp4
>> Emp2 Emp5
>> Emp3 Emp6
>>
>> to get and output of:
>>
>> Emp1
>> Emp2
>> Emp3
>> Emp4
>> Emp5
>> Emp6
>
> You don't need a JOIN, you need a UNION.
>
> Jochem
>
> --
> Jochem van Dieten
> Adobe Community Expert for ColdFusion


Inspiring
April 2, 2007
Wally Kolcz wrote:
> If I want to take 2 tables and combine them into one output, which JOIN do I
> use? Both table's columns have the same name (EMPLOYEE).
>
> Table 1 Table2
> EMPLOYEE EMPLOYEE
> Emp1 Emp4
> Emp2 Emp5
> Emp3 Emp6
>
> to get and output of:
>
> Emp1
> Emp2
> Emp3
> Emp4
> Emp5
> Emp6

You don't need a JOIN, you need a UNION.

Jochem

--
Jochem van Dieten
Adobe Community Expert for ColdFusion