Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to select random rows from a table in SQL?
Home
Sql
How to select random rows from a table in SQL?
0
votes
asked
Jul 10, 2020
in
Sql
by
SakshiSharma
How to select random rows from a table?
#sql-random-rows
#select-random-row-sql
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 10, 2020
by
sharadyadav1986
Using a SAMPLE clause we can select random rows.
For Example,
SELECT * FROM table_name SAMPLE(10);
Related questions
+1
vote
Q: Write a SQL SELECT query that only returns each name only once from a table?
asked
Jul 10, 2020
in
Sql
by
SakshiSharma
#sql-select
#select-sql
0
votes
Q: How to retrieve rows from a DB2 table in Embedded SQL?
asked
Feb 28
in
DB2
by
john ganales
embedded
sql
0
votes
Q: How to select all records from the table?
asked
Jul 8, 2020
in
Sql
by
Robindeniel
#sql-record-table
0
votes
Q: In SQL, which command is used to SELECT only one copy of each set of duplicable rows
asked
Nov 25, 2021
in
Oracle
by
DavidAnderson
oracle
0
votes
Q: Write the SQL query to get the third maximum salary of an employee from a table named employees.
asked
Nov 8, 2021
in
Sql
by
rajeshsharma
sql-query
0
votes
Q: An SQL query to delete a table from the database and memory while keeping the structure of the table intact?
asked
Dec 15, 2020
in
Sql
by
SakshiSharma
#sql-delete
#delete-database
+1
vote
Q: Which statement is used to delete all rows in a table without having the action logged?
asked
Nov 4, 2021
in
Sql
by
john ganales
delete-table-rows
0
votes
Q: In SQL, which command is used to add new rows to a table?
asked
Nov 24, 2021
in
Oracle
by
DavidAnderson
oracle
0
votes
Q: Write an Oracle SQL query to ensure only users with the manager role can insert rows into the performance_reviews table.
asked
Jan 23
in
Oracle
by
SakshiSharma
oraclesqlquery
0
votes
Q: How do we display rows from the table without duplicates?
asked
Jan 17
in
Oracle
by
AdilsonLima
oracle-interview-questions-answers
...