Hi ,
I have the following requirement in my team .Request you to help me on how this is possible using a join Query
Requirment:
I have two Table - say Table 1 and Table 2.
-------------------------------------------
Query for Table 1:
select distinct(ID) from Table 1
where (condn)
----------------------------------------------
Query for Table :
select distinct(ID) from Table 2
where (condn)
---------------------------------------------
My criteria is to delete and insert into Table 2 for the following scenario:
Table 1 Table 2 Action 1
----------------------------------------------
present present no action
not presen present delete from Table 2
present not present insert into Table 2
------------------------------------------------
Please advise me on how to proceed with the Changes using Joins.Is it possible to do so.If so can you please help as it an urgent requirement popped up in my team.Could you also provide the code procedure on how to proceed.Thank you.