Comments
5 comments
-
Hi Steve,
Thank you for bringing this to our attention, I was able to replicate this on my end and will escalate it to the dev team.
Best,
Dustin -
Hi Steve,
I wanted to follow up on this post our dev team has added this to their board to investigate.
Best,
Dustin -
Sweet. Thanks for tracking this. -
Hello,
I wanted to follow up on this forum post, this bug has been resolved in the SQL Prompt v10.13.6 release.
Best,
Dustin -
Thanks, Dustin. Always a RedGate fan.
Add comment
Please sign in to leave a comment.
CREATE TABLE #deleteme ( id INT ,value1 INT ) SELECT id ,FIRST_VALUE(id) OVER (ORDER by value1 DESC) AS foo FROM #deleteme GROUP BY FIRST_VALUE(id) OVER (ORDER BY value1 DESC), id -- what SQL Prompt suggests SELECT id ,FIRST_VALUE(id) OVER (ORDER by value1 DESC) AS foo FROM #deleteme GROUP BY value1, id -- what it should suggestPretty simple, really. What SQL Prompt suggests is invalid TSQL (can't have windowing function in a GROUP BY).
-steve