This is my query:
SELECT id, DeviceName, DeviceTypeId
FROM device
WHERE DeviceTypeId LIKE (SELECT DeviceId FROM net_backupdevice WHERE CustomerId = '1');
after execution following error display.
ERROR 1242 (21000): Subquery returns more than 1 row
This table net_backupdevice return 2 records and I want both record information id, DeviceName, DeviceTypeId stored in device table.
so please help.
Please notice the IN instead of Like