...which of course can easily be turned into
select * from auditrecord where idb5 in (select ida2a2 from wtuser where name like '%ben.perry%')
so that only 1 query needs to be executed instead of 2.
But the problem with these 2 methods are that:
- It includes all EVENTLABELs (Login, Logout, Context Logon, others?)
- It includes all times (21,396 rows for my username), not just the most recent