I have a situation where I am suppose to compare a document name from one query against query.

I have a table called tbl\_doc which consists document\_name column.

Another table called tbl\_content which consists content\_name.

And I have two select queries like

```
select document_name from tbl_doc

select content_name from tbl_content.

```

SO I need to compare document\_name against content\_name if they are equal then need to do a insert operation.

Thanks