I have a provider directory on the web that returns results in alphabetical order by provider office name when you enter a zip code and a mileage radius. However, we are finding that the locations that show up on the top of the search (a, b, c, etc) are getting a lot more referrals than those on the bottom (s, t, u, etc). So instead of doing alpha order we would like them to come out in a random order everytime we do a search. I tried just adding a RAND() to the end of my query:
select f1, f2, f3, .., f12, rand()
from tb1, tb2
where etc etc
but when you do that it returns the same value for each row.
Any ideas?
Thanks!
select f1, f2, f3, .., f12, rand()
from tb1, tb2
where etc etc
but when you do that it returns the same value for each row.
Any ideas?
Thanks!