Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,466
    Thanks
    15
    Thanked 0 Times in 0 Posts

    select random record

    I have the following code

    select top 1 * from users

    how can I instead of selecting the top just select a random record?

  • #2
    Regular Coder
    Join Date
    Mar 2005
    Location
    United States
    Posts
    271
    Thanks
    0
    Thanked 0 Times in 0 Posts
    order by rand()


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •