Iam inserting multiple records from one table to another table like
INSERT INTO table3 ( iSysRecDeleted, iUserId ) SELECT table2.iDeleteId, (SELECT iUserIdOld FROM table1 WHERE table1.col1=table2.col2) FROM table2 But it is giving me "Sub query returns more than 1 row".iUserIdOld had multiple entries with repetive in table1.Also I have to insert column3 from another table which will be not relevant to table1 and table2 so I don't have to use Join.Could anyone please tell me to do it in a right way. Thanks in advance.