S
steve
Hi ,
can someone help me with this statement:
INSERT INTO Measurements (datetime, val, METEOid, ParamMeteo, Valide)
(
SELECT DATEADD(HH,0,Date), val1, MENVid, CodePol, Valide
FROM tblMeasQAHor
UNION ALL
SELECT DATEADD(HH,1,date), val2, MENVid, CodePol, Valide
FROM tblMeasQAHor
UNION ALL
SELECT DATEADD(HH,2,date), val3, MENVid, CodePol, Valide
FROM tblMeasQAHor
)
I`ve tried various variations with various error mesages. For the above
(latest version) I get:
Error in the INSERT INTO statement.
Also, is the dateadd function properly set? I am trying to *transpose* a
|Date| Value1 | ... |value24| table into a |Date_Time| Value| table, so i
need to add a corresponding time to the old date-only field depending on
which column i am reading.
TIA for any help!
-steve
can someone help me with this statement:
INSERT INTO Measurements (datetime, val, METEOid, ParamMeteo, Valide)
(
SELECT DATEADD(HH,0,Date), val1, MENVid, CodePol, Valide
FROM tblMeasQAHor
UNION ALL
SELECT DATEADD(HH,1,date), val2, MENVid, CodePol, Valide
FROM tblMeasQAHor
UNION ALL
SELECT DATEADD(HH,2,date), val3, MENVid, CodePol, Valide
FROM tblMeasQAHor
)
I`ve tried various variations with various error mesages. For the above
(latest version) I get:
Error in the INSERT INTO statement.
Also, is the dateadd function properly set? I am trying to *transpose* a
|Date| Value1 | ... |value24| table into a |Date_Time| Value| table, so i
need to add a corresponding time to the old date-only field depending on
which column i am reading.
TIA for any help!
-steve