MySQL Forums
Forum List  »  Newbie

Re: Query from logs
Posted by: Wael Sedky
Date: January 01, 2021 10:40PM

This is my modified query. Unfortunately the results are not correct. At minimum i need the device name and ip address. The rest are a bonus :)

select d.device_name, l.latest, l.ip, d.device_mac, version from ( select device_mac, device_name from devices where device_name like '%curtain%' ) d join ( select ip, device_mac, max(entry_time) as latest, version from device_logins group by device_mac ) l using(device_mac) order by latest

Options: ReplyQuote


Subject
Written By
Posted
January 01, 2021 06:45PM
January 01, 2021 08:22PM
January 01, 2021 08:34PM
January 01, 2021 08:45PM
Re: Query from logs
January 01, 2021 10:40PM
January 01, 2021 11:52PM
January 02, 2021 09:37AM
January 06, 2021 06:12AM
January 27, 2021 07:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.