Viewing 5 posts - 1 through 5 (of 5 total)
Steve Jones - SSC Editor (10/26/2011)
The problem is that you cannot do the division in the same way as...
October 27, 2011 at 7:19 am
Theres no fixed number of channels, it could be anything upwards of 2
I do have fixed channelIDs which would be in my Insert-Select Statement but for ease of testing Ive...
October 26, 2011 at 9:18 am
Steve Jones - SSC Editor (10/26/2011)
Is that correct? It's hard to know what's not working....
October 26, 2011 at 9:07 am
basically we have a system that logs data from various devices called channels. Each channel logs data every 30 minutes on the hour and on the half hour.
occaisionally we want...
October 26, 2011 at 9:05 am
Thanks for the heads up...
Test Data and query
---------------------------
CREATE TABLE #SourceData
(
ReadingDateTimedatetime,
ChannelDatadecimal(18,4),
UnitAggregationvarchar(50),
IsMultiplyChannelbit,
IsDivideChannelbit
)
INSERT INTO #SourceData
(ReadingDateTime, ChannelData, UnitAggregation, IsMultiplyChannel, IsDivideChannel)
SELECT '2011/01/01 00:00','2','RAW','0','1'
INSERT INTO #SourceData
(ReadingDateTime, ChannelData, UnitAggregation, IsMultiplyChannel, IsDivideChannel)
SELECT '2011/01/01 00:00','4','RAW','0','1'...
October 26, 2011 at 8:38 am
Viewing 5 posts - 1 through 5 (of 5 total)