Quantcast
Viewing all articles
Browse latest Browse all 35

Answer by jrEving for How to select the nth row in a SQL database table?

unbelievable that you can find a SQL engine executing this one ...

WITH sentence AS(SELECT     stuff,    row = ROW_NUMBER() OVER (ORDER BY Id)FROM     SentenceType    )SELECT    sen.stuffFROM sentence senWHERE sen.row = (ABS(CHECKSUM(NEWID())) % 100) + 1

Viewing all articles
Browse latest Browse all 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>