This tutorial shows how to select random row from IBM DB2 table.
SELECT first_name, last_name, RAND() AS IDX FROM customer ORDER BY IDX FETCH FIRST 1 ROWS ONLY
You must be logged in to post a comment.
Add A Comment
You must be logged in to post a comment.