Device Status without Timestamps | LinkedIn SQL Question