Connect your existing Source Control system to SSMS in 5 minutes
Getting started with SSIS - Part 6: Import Export Wizard Part 1
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.
A collection of quick technology learning tips from what people around you learn every day
Jacob Sebastian
1 · 100% · 17136
  • 9
    Liked
    4
    Learned
    12
    Comments

    Get random row from the table

    Sometimes it happens that we need random row (or set of randoms rows) from table. Itzik Ben-Gan shows us, in one of his book, the efficient way to do this: SELECT TOP(1) * FROM someTable ORDER BY NEWID() Changing the value in TOP operator, we can, in...
    Just Learned »  SQL Server Tips
    Adam Tokarski  Posted on Feb 21 2012 12:00AM
    Profile
Previous 1 | 2 Next
    Copyright © Beyondrelational.com Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising