How to insert value in database table on the basis of matching condition in two table column values.

Hi,

I have below query:

Suppose,

We are having two database tables : Table 1 and Table 2

And having column with same name and same type of values in both the tables: column 1 (Table 1) and column 2 (Table 2)

We have to match the values of column 1 with column 2 and if same value does not exist in column 2, we need to insert new row in table 2 with that value.

We have to create this functionality from scratch. We are just having two table with data. So I can't provide any code here.

Please help me to understand how can we achieve this .

  Discussion posts and replies are publicly visible