Viewing 12 posts - 1 through 12 (of 12 total)
You can calc the min value, like :
MIN(points) OVER (Order by points)
modify the default window like:
LAST_VALUE(points) OVER(ORDER BY points DESC ROWS BETWEEN CURRENT ROW AND UNBOUNDED...
August 9, 2018 at 4:17 am
Nice question.
Just a tip, remember to use union all instead of union when there is no need to remove duplicates.
April 2, 2018 at 12:37 am
Tricky question cause SQL Server 2005 is only supported in Windows Server 2008 or below, and SQL Server 2017 is only supported in WS 2012 and higher... ;p
March 19, 2018 at 7:36 am
Happy dragons!. Nice article.
October 20, 2017 at 12:19 am
September 19, 2017 at 12:20 am
WITH myBeers (<see CTE in the question> )
,nto as (
SELECT OwedTo as pp, sum(beer) as beers FROM myBeers
group by owedto),
nby as (SELECT Owedby as pp, sum(beer)...
September 18, 2017 at 5:57 am
Nice question, but the correct answer is wrong. It should be the 4th one as said by the explanation, right?
May 23, 2017 at 12:14 am
A fun and different way to SELECT DISTINCT.
WITH DistinctCTE
AS (
SELECT [Column] = MIN(t.[Column])
...
December 5, 2013 at 12:09 am
Its hard to get the directory where a dtsx is running from a Script Task because each Script Task is as one dll.
This dll is compiled and executed from some...
May 11, 2010 at 10:51 am
Its hard to get the directory where a dtsx is running from a Script Task because each Script Task is as one dll.
This dll is compiled and executed from some...
May 11, 2010 at 10:51 am
Its hard to get the directory where a dtsx is running from a Script Task because each Script Task is as one dll.
This dll is compiled and executed from some...
May 11, 2010 at 10:51 am
Viewing 12 posts - 1 through 12 (of 12 total)