how to use RAND() in select statement?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vidhya raman
    New Member
    • Jan 2011
    • 5

    #1

    how to use RAND() in select statement?

    I want to select two columns from a table and arrange one column randomly using RAND().how to achieve this?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You can try a RAND column in a subquery in the place of your table in the FROM statement or you can ORDER BY RAND. I don't know which method would execute the fastest.

    Comment

    • vidhya raman
      New Member
      • Jan 2011
      • 5

      #3
      Thank u...

      Comment

      Working...