Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

I want to append two tables

$
0
0
Hi

I have two tables that I want to join. The tables are very basic


File name: Table 1.dbf
-------------------------
year colA colB
-------------------------
0 1 2
1 1 4
2 5 6


File Name: Table 2.dbf
-------------------------
year colC colD
-------------------------
0 a b
1 1 d
2 e f


I want the result to be


File Name: Result.dbf
-------------------------
Result
-------------------------
1
1
5
a
1
e

I want the result to be saved as a new file. So far my code looks like

Code:

SELECT colA FROM Table 1.dbf;
UNION ALL
SELECT colCfrom Table 2.dbf;
INTO TABLE Result.dbf

The program don't recognize UNION ALL. I have followed the structure from different websites, but it don't want to work :(

Viewing all articles
Browse latest Browse all 13329

Trending Articles