I have written a Union Query as will follow. To start with I placed the word NULL where the 0's are now, but this was causing problems. The 0's solved the problem but now obviously returns a 0 instead of a blank field. Is there any other way to do it, to keep the field blank and the query working??
Why is it only doing it for 'Sensor1'?
My UNION QUERY
SELECT [Time], [Value] AS Sensor1, 0 AS Sensor2, 0 AS Sensor3, 0 AS Sensor4, 0 AS Sensor12
FROM L0O20S1
UNION
SELECT [Time], NULL, [Value], NULL, NULL, NULL
FROM L0O20S2
UNION
SELECT [Time], NULL, NULL, [Value], NULL, NULL
FROM L0O20S3
UNION SELECT [Time], NULL, NULL, NULL, [Value], NULL
FROM L0O20S4
UNION SELECT [Time], NULL, NULL, NULL, NULL, [Value]
FROM L0O20S12
ORDER BY [Time];
Why is it only doing it for 'Sensor1'?
My UNION QUERY
SELECT [Time], [Value] AS Sensor1, 0 AS Sensor2, 0 AS Sensor3, 0 AS Sensor4, 0 AS Sensor12
FROM L0O20S1
UNION
SELECT [Time], NULL, [Value], NULL, NULL, NULL
FROM L0O20S2
UNION
SELECT [Time], NULL, NULL, [Value], NULL, NULL
FROM L0O20S3
UNION SELECT [Time], NULL, NULL, NULL, [Value], NULL
FROM L0O20S4
UNION SELECT [Time], NULL, NULL, NULL, NULL, [Value]
FROM L0O20S12
ORDER BY [Time];