Viewing 15 posts - 121 through 135 (of 1,414 total)
This reminds a little of a similar topic from a few weeks ago
https://www.sqlservercentral.com/forums/topic/inconsistent-query-execution-times
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
One way could be to add the date and hour to the GROUP BY
select t.tagid, cast(v.ss_dt as date) day_dt, datepart(hour, v.ss_dt) hr,
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
For the denominator you could sum SIGN(ABS()) functions. The SIGN function returns -1, 0, or 1 depending on if the input is negative, zero, or positive. The ABS function returns...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Viewing 15 posts - 121 through 135 (of 1,414 total)