-1

I have a stored procedure that produces data for call center solution. However, is there a way to modify the sp so that each time the data is executed it is delivered in a different order? For Example Today: 1,2,3 Tomorrow: 2,1,3 the next day 3,1,2 . Is there a manipulation I can execute that will scramble the order whenever it is executed?

user2671286
  • 91
  • 2
  • 7

2 Answers2

2

Yes simples. ORDER BY NewID()

Mark
  • 1,544
  • 1
  • 14
  • 26
1

SELECT column FROM table ORDER BY NewID()

Lali
  • 2,816
  • 4
  • 30
  • 47