Could you simplify the query to 1 data item and the other data item containing the random function, and generate the SQL for that query? I would like to look at the generated Native SQL.
Is your database MS SQL Server?
Is your database MS SQL Server?