I am trying to select 1,000 random rows from a database of 97 million rows. I am using the following code:
SELECT *
FROM "DB"."SCHEMA"."TABLE"
ORDER BY
RAND() LIMIT 1000
I tried this code and got an error stating "SQL compilation error: Unknown function RAND." Is there a better way to do this in Snowflake? I am worried that this code only works in MySQL.