I did
SELECT F.id
FROM ftable F
INNER JOIN dtable D ON (F.id= D.id)
WHERE D.email = 'abc@abc.com';
now I need to do a insert in a ftable column using the select result as the where indicator.
I did
SELECT F.id
FROM ftable F
INNER JOIN dtable D ON (F.id= D.id)
WHERE D.email = 'abc@abc.com';
now I need to do a insert in a ftable column using the select result as the where indicator.
You can simply insert those selected values by putting insert into before ur select.
Insert into ftable
SELECT F.* FROM ftable F
INNER JOIN dtable D ON (F.id= D.id)
WHERE D.email = 'abc@abc.com';