I am new to MySQL. I am facing an issue in generating a query.
So Basically I have two tables: device_master_data, device_logs.
device_master_data: