Sponsored By
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Article
Forum
Blog
Quiz
Beginner
Careers
Contact
Login
Email Id
Password
Remember Me
Forgot Password?
Sign Up
Home
|
Product
|
Services
|
About Us
|
Interview
|
DeveloperSection
|
Submit an Article
|
Submit Blog
Report Abuse Form
Reason:
Home
>>
Database
>>
MSSQL Server 2000/2005/2008/2012
>>
How to selecte random records from SQL Server table?
Author
Post
Tanuj Kumar
Total Post:
43
Member Since:
3/20/2012
Points:
217
How to selecte random records from SQL Server table?
Posted On:
3/24/2012 1:48:00 AM
Report Abuse
Hello Everyone,
I want to select records randomly from my SQL Server table. Could you explain it with the code that how to do it?
Thanks in advance!!
Reply
Author
Post
Arun Singh
Total Post:
48
Member Since:
7/1/2011
Points:
331
Re: How to selecte random records from SQL Server table?
Posted On:
3/26/2012 1:19:45 AM
Report Abuse
Hi Tanuj Kumar,
In SQL Server database, there is a function
NEWID()
through which we can select SQL table record randomly.
Query:
select * from tbl_Name order by newid()
I hope it might be resolve your problem.
Reply
Report Abuse Form
Reason:
Total Online Users:
3783
Advertisement
Advertise with Us
Copyright ©
2009 - 2013
MindStick. All Rights Reserved.
Home
|
Contact Us
|
Services
|
Feedback
|
Advertisement
|
Privacy Policy
|
Term & Conditions
|
About Us