TSQL Offset issue #2388
Closed
bisoftbilgi
started this conversation in
General
Replies: 1 comment
-
This is out of scope for us right now, happy to accept a high-quality PR. One thing to note is that T-SQL seems to require an So if there's no |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am triying to transpile a sql from postgresql to tsql however offset seems not working in the tsql dialect. Is there a way to make offset work in the tsql
PostgreSQL query
SELECT "tvf"."logo", "tvf"."takim", SUM("tvf"."oynanan_mac"), SUM("tvf"."kazanilan_mac"), SUM("tvf"."maglubiyet"), SUM("tvf"."kazanilan_set"), SUM("tvf"."kaybedilen_set"), SUM("tvf"."set_averaj"), SUM("tvf"."sayi_averaj"), SUM("tvf"."siralama_puani") FROM tvf WHERE 1 = 1 AND kazanilan_mac >= 25 GROUP BY "tvf"."logo", "tvf"."takim" LIMIT 100 OFFSET 50
Transpiled TSQL query
SELECT TOP 100 "tvf"."logo", "tvf"."takim", SUM("tvf"."oynanan_mac"), SUM("tvf"."kazanilan_mac"), SUM("tvf"."maglubiyet"), SUM("tvf"."kazanilan_set"), SUM("tvf"."kaybedilen_set"), SUM("tvf"."set_averaj"), SUM("tvf"."sayi_averaj"), SUM("tvf"."siralama_puani") FROM tvf WHERE 1 = 1 AND kazanilan_mac >= 25 GROUP BY "tvf"."logo", "tvf"."takim"
Beta Was this translation helpful? Give feedback.
All reactions