Compare two database with 3 output

Highlighted
One Star

Compare two database with 3 output

Hello,

I try to compare two tables. But I can't find a solution.
The problem :
I work on MSSQL.
I want to list all of tables on DB. Request is :
select table_name from INFORMATION_SCHEMA.TABLES where TABLE_TYPE='BASE TABLE'

Next I want compare the results. But with Tmap and look up doesn't work.
In fact I would like 3 results :
- File csv with the list of table which exist both.
- File csv with the list of table which not exist on DB 1
- File csv with the list of table which not exist on DB 2
For the moment, my result is a file with list of table which exist both.
I don't know what to do anymore.
Thank's in advance,

My job :




Highlighted
Forteen Stars

Re: Compare two database with 3 output

You can use combination of 2 lookups (check also settings on pictures):
             
-----------
Highlighted
One Star

Re: Compare two database with 3 output

Thank !!!!!
That works!!! Smiley Happy

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog

Downloads and Trials

Test drive Talend's enterprise products.

Downloads