[#2580] Bad SQL rendered when combining DISTINCT with LIMIT .. OFFSET in
DB2, SQL Server