PostgreSQL’s TABLESAMPLE brings a few more advantages compared to other traditional ways for getting random tuples. TABLESAMPLE is a SQL SELECT clause and it provides two sampling methods which are SYSTEM and BERNOULLI. With the help of TABLESAMPLE we can easily retrieve random rows from a table. For further reading about TABLESAMPLE you can check the […]
↧