MySQL statement help

Hi Colin Thanks for your reply, LRoom1 is row primary key for a row from Device column.