私の質問は本当にばかげているように聞こえるかもしれませんが、私は立ち往生しています。これが私がSQLServerでやろうとしていることの擬似コードです
if exists(select id from employee where Email='saghir@abc.com')
begin
insert in tasks with selected id
end
else
begin
insert in employee value Email='blah';
insert in tasks with new id in employee
end
あなたの提案を願っています...