0 votes
in Oracle by
Write an Oracle SQL query to get the date and time of the last 10 logins for a specific user.

1 Answer

0 votes
by
SELECT login_time

FROM UserLogins

WHERE user_id = 'specific_user_id'

ORDER BY login_time DESC

FETCH FIRST 10 ROWS ONLY;
...