MSSQL query boundaries conditions
SELECT Max(Id) nt
FROM (SELECT Id,(Ntile(160) over( ORDER BY Id)) nt FROM demo)
test
GROUP BY nt
ORDER BY nt
option (maxDOP 1024)
Dream Always Dream , if you don't work on it : Real-world Oracle DBA troubleshooting guides for RAC, Data Guard, RMAN, performance tuning, upgrades, backups, and cloud migration. Tested in production environments.
SELECT Max(Id) nt
FROM (SELECT Id,(Ntile(160) over( ORDER BY Id)) nt FROM demo)
test
GROUP BY nt
ORDER BY nt
option (maxDOP 1024)
Geographic Resiliency Geographic resiliency (also called geographic redundancy ) refers to the practice of deploying applications, databa...