SELECT user_name, (SELECT TOP 1 last_action FROM actions WHERE actions.user_id=users.user_id ORDER BY action_timestamp) FROM users
Also, thanks for making me aware of CROSS APPLY, haven't seen that before!
Also, thanks for making me aware of CROSS APPLY, haven't seen that before!