G
Guest
Hi!
I´ve pasted my SQL below. It is joining 3 queries.
My problem is that in the cases where I used Null for some columns, those
columns loose their heading. Is there a simple way to enter the heading here,
or should I just solve the problem by making a second query?
Not that that's a big problem, I'm just eager to learn...
Thanks!
SELECT [Lake-ID], [Year], [+/- (yr)], [Type], [Species], Null, Null, Null,
Null, Null, [Comment], [Reliability], [Source-ID]
FROM [Presentation - presence]
UNION SELECT [Lake-ID], [Year], [+/- (yr)], [Type], [Species], [Reason for
extinction], Null, Null, Null, Null, [Comment], [Reliability], [Source-ID]
FROM [Presentation - extinctions]
UNION SELECT [Lake-ID], [Year], [+/- (yr)], [Type], [Species], Null,
[Repeatingly], [Follow-up year], [Result - catch], [Result - reproduction],
[Comment], [Reliability], [Source-ID]
FROM [Presentation - stockings]
ORDER BY [Lake-ID], [Year], [Species];
I´ve pasted my SQL below. It is joining 3 queries.
My problem is that in the cases where I used Null for some columns, those
columns loose their heading. Is there a simple way to enter the heading here,
or should I just solve the problem by making a second query?
Not that that's a big problem, I'm just eager to learn...
Thanks!
SELECT [Lake-ID], [Year], [+/- (yr)], [Type], [Species], Null, Null, Null,
Null, Null, [Comment], [Reliability], [Source-ID]
FROM [Presentation - presence]
UNION SELECT [Lake-ID], [Year], [+/- (yr)], [Type], [Species], [Reason for
extinction], Null, Null, Null, Null, [Comment], [Reliability], [Source-ID]
FROM [Presentation - extinctions]
UNION SELECT [Lake-ID], [Year], [+/- (yr)], [Type], [Species], Null,
[Repeatingly], [Follow-up year], [Result - catch], [Result - reproduction],
[Comment], [Reliability], [Source-ID]
FROM [Presentation - stockings]
ORDER BY [Lake-ID], [Year], [Species];