SELECIONAR DeviceSummary.AssetName, DeviceSummary.Username, UserDetails. [Nome],
UserDetails. [Apelido], UserDetails. [Centro de custo], DeviceSummary.LastUsed
De UserDetails INTERNO JUNTAR-SE a DeviceSummary EM UserDetails.Username = DeviceSummary.Username
ONDE DeviceSummary.LastUsed = DMax (“LastUsed”, “DeviceSummary”, “AssetName='" & DeviceSummary.AssetName & “'")
ORDEM por DeviceSummary.LastUsed DESC;