Spencer --
SELECT T1.V11,...T1.V1N,T2.V21,...T2.V2N
FROM T1 LEFT JOIN T2 on T1.KEY=T2.KEY
UNION
SELECT NULL,...,NULL,T2.V21,...T2.V2N
FROM T2
WHERE T2.KEY NOT IN
(SELECT KEY FROM T1)
If you have a lot of tables, this can become tedious and slow. Then you
might want to program it as a merge:
(1) open all tables in key order
(2) do until eof on all tables
(2.1) find table with lowest key value
(2.2) add new output record with all variables null
(2.3) for all tables with key=lowest key value
(2.3.1) set output variables=input variables
(2.3.2) move next
(2.4) update output record
(3) close all tables
HTH, Roger
Quote:
>I want a record to be present whether
>there is a value in any particular table even if there is not a record in
>any other table.
>Spencer Tabbert