The sum of all SQL Server matter that exist,
and the space in which all SQL Server events
occur or could occur.
Welcome to SQL Server Universe.com Sign in | Join | Help
in
Home SS SLUG Forums Articles Photos Downloads

Browse by Tags

All Tags » Random Record   (RSS)
Sorry, but there are no more tags available to filter with.
  • Re: random selecting

    Hi, This could be done in several ways. Here's a script that I came up with. It uses the Products table of the AdventureWorks database. It randomly selects a record and displays the [Name] and [ProductNumber] columns: SELECT    [Name],    [ProductNumber]FROM    (        ...
    Posted to T-SQL (Forum) by gogula on September 11, 2008
Powered by Community Server, by Telligent Systems