Viewing 15 posts - 1 through 15 (of 16 total)
Ah yes. The missing semicolon was the problem. Thanks!
September 15, 2017 at 2:49 pm
@drew, I got the error "incorrect syntax near the keyword 'with'.WITH Pinhead_rn AS
(
SELECT *, ROW_NUMBER() OVER(PARTITION BY [ID] ORDER BY checkMe DESC)...
September 14, 2017 at 3:36 pm
Awesome. Thank you!
The first 2 linesDELETE FROM A
FROM dbo.PinheadTest a
I didn't imagine that could be done like that.
DELETE FROM someTable FROM someTable...
September 13, 2017 at 10:43 pm
Awesome. Exactly the kind of specific guidance I needed!
Thanks, Thom. Very clear description.
January 6, 2017 at 7:07 am
John Mitchell-245523 (12/6/2016)
December 6, 2016 at 4:56 am
Eirikur Eiriksson (12/6/2016)
Quick question, have you tested if @i ever becomes NULL?😎
WHILE @i IS NOT NULL
...
SELECT @i = min(Id) FROM @Alarms WHERE id > @i
Uh... no. I assume the while...
December 6, 2016 at 4:17 am
Excellent write-up! Thanks again.
So if I wanted to adjust the code and expand on the portion that builds the random value added to the base value, I could just use...
September 3, 2016 at 9:56 am
@Eirikur, Much thanks! The output is nearly there. Now I need to understand it.
I got as far as
(SELECT N FROM (VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0)) AS X(N))
I figure you chose 10 values arbitrarily...
September 3, 2016 at 8:32 am
Thanks for responding.
I knew of TOP. But I didn't want one row. Which is why I wrote
return a single value from a row
.
Anyways the SSRS dialogs for setting that...
August 23, 2016 at 2:36 pm
I will forward that suggestion on. Thanks for the info!
August 8, 2016 at 10:49 am
The error message from the tooltip over either of the red-underlined column names is: "... is of a type that is invalid for use as a key column in a...
August 8, 2016 at 10:29 am
This is the query I used. I extrapolated because I thought I understand the model your query involved.
Basically the index must cover each of the fields being compared on.
So table...
August 6, 2016 at 8:00 am
ScottPletcher (8/4/2016)
August 5, 2016 at 3:20 pm
Phil Parkin (8/4/2016)
No difference other than in syntax. What actually gets executed will be the same.
Thanks for the clarification. Luis pretty much said that but I wanted to make sure..
August 4, 2016 at 11:12 am
Luis Cazares (8/4/2016)
August 4, 2016 at 11:06 am
Viewing 15 posts - 1 through 15 (of 16 total)