This is straightforward in SQL. You can even write the relevant part of the ... SELECT user_id, MAX(created_at) FROM orders GROUP BY user_id.
確定! 回上一頁