• Just put IsMember at the front of the order by ðŸ˜€

    SELECT TOP 1 * FROM @T ORDER BY IsMember DESC, NEWID()