I have a table with following columns
1. ID
2. UserID
3. ImageUrl
I want retrieve a random ImageUrl for each UserID. For example, there 4 rows in the table
1 12251 Winter.jpg
2 12251 Summer.jpg
3 33333 Fall.jpg
4 33333 Spring.jpg
and the query retrieve the following rows
1 12251 Winter.jpg
4 33333 Spring.jpg
1 Answer