Viewing 11 posts - 1 through 11 (of 11 total)
Okay - I figured it out. I just needed an OR in the WHERE clause...
October 12, 2021 at 2:21 am
Alan,
Thank you! We were not familiar with the LAG command and that appears to do exactly as needed.
September 8, 2016 at 3:39 pm
Doh!
March 15, 2015 at 1:40 pm
Stephanie,
Thank you.
When I ran the 'fixed' query, see my Post #1662720, the query returned five rows - this is the expected result. With your query, there was no grouping, i.e.,...
February 23, 2015 at 2:28 pm
Luis,
That would be tough. I have been working with a smallish example, but it has 771 data rows...
February 23, 2015 at 1:57 pm
Doing some more digging:
If I change the select line to:
SELECT (StartTime + Offset) / 100, min(Sensor), max(Sensor)
The query runs, but the returned value is not what I need. However,...
February 23, 2015 at 1:51 pm
Linksup+,
You are correct - dropping the divide does allow the query to run, but it no longer provides the proper result.
This post, https://stackoverflow.com/questions/4342370/grouping-into-interval-of-5-minutes-within-a-time-range, or one similar, may...
February 23, 2015 at 1:42 pm
Stephanie,
Thanks for the reply.
StartTime and Offset are of type BIGINT - they are converted from datetime to milliseconds from epoch elsewhere.
February 23, 2015 at 1:17 pm
Wound up reinstalling - wasn't that painful. Guess the first time, I created a named instance instead of using the default.
March 8, 2010 at 4:10 pm
Thank you for taking time to reply. Sadly, neither reference was useful.
The answer turns out to be the configuration of the TCP/IP protocol with the SQL Server Configuration Manager....
June 15, 2009 at 12:02 pm
Found a solution - I had to simply create the registry key (DWORD)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\TurnOffRpcSecurity
and set its value to 1
June 23, 2005 at 9:48 am
Viewing 11 posts - 1 through 11 (of 11 total)