How to select random rows from a table?
Answer / Anoo Sonker
To select random rows from a table, use the RAND() function in combination with the ORDER BY clause. For example: SELECT * FROM tablename ORDER BY RAND() LIMIT number_of_rows.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the purpose of a sql?
what is Difference between Having and Where clause?
Is delete faster than truncate?
What is an Integrity Constraint?
what are the advantages of sql ? : Sql dba
How do you create a db file?
What are the events on which a database trigger can be based?
We have a CURSOR then we need BULK COLLECT?
Name the operator which is used in the query for pattern matching?
Compare sql & pl/sql
Source is Sales Table: Sno Prod Sales Sales_Amount 1 A 10 2000 2 A 20 1000 3 C 10 3000 4 D 30 4000 5 A 20 1000 Target : Sales_Count T_Sales_Amt Sales_Count(A) T_Sales_Amt(A) 90 11000 50 4000 In single query, pls tell me.
What is form and report?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)