Viewing 4 posts - 1 through 4 (of 4 total)
In this case I would suggest to not using SQL server at all, just rely on scripting languages like Python, R and PowerShell.
You don't need to have the data in...
July 14, 2021 at 8:32 am
Thanks for your reply, I use the pivot quite often for management reporting so any insight is welcome.
Regards, JJ
January 11, 2017 at 1:57 am
My suggestion would be to use a PIVOT clause:
WITH cteSports AS (
SELECT * ,sn = ROW_NUMBER() OVER (PARTITION BY name ORDER BY sport)
FROM #example
)
SELECT name, city,...
January 10, 2017 at 1:23 pm
Hi there,
There's also another method if you need not exacly 500 rows, but 500 rows or less per page.
You can use the following statement:
SELECT NTILE(1+(SELECT COUNT(*) FROM Tablename) / 500)...
January 10, 2017 at 12:09 pm
Viewing 4 posts - 1 through 4 (of 4 total)