You're IT

Simply put, this blog is a dumping ground for things I find interesting or worth remembering relating to Java, programming, web, lean, agile, etc, etc.

Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Monday, March 5, 2012

Get a random row on SQL Server

Pretty simple method for getting a random row on SQL Server.
SELECT TOP 1 column FROM table ORDER BY NEWID()

More ways to get random rows on other databases can be seen here.
As well as another article on random rows on SQL Server.
Posted by Brett at 3:37 PM 0 comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: database, random, server, sql
Older Posts Home
Subscribe to: Posts (Atom)

Search This Blog

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Popular Posts

  • JSTL c:forEach varStatus properties
  • Git Ignore for a Java Eclipse Project
  • Serializing and Deserializing an Object to a String
  • The Hibernate WITH clause, the HQL equivalent of SQL's ON
  • Spring Security: Return a 401 UNAUTHORIZED for AJAX Requests
  • Split a Java List Into a List of Sublists

Labels

CAS agile bigdata bug code review collaboration continuous improvement culture data database design patterns eclipse exception git hibernate initbinder jackson jasper java javascript jpa jpql jquery json jstl junit leadership lean maven mockito reflection regex rest security software spring springmvc sql sql server team test tomcat validation xml
Awesome Inc. theme. Powered by Blogger.