I am working on 4 tables. The tables all hold data about routes (IE: From
, To
, Distance
).
Table1
may hold 5000 rows, Table2
has 2500 rows, Table3
has 3000 rows and Table4
has 3000 rows as well.
I have created INNER JOINs for all tables. This though, excludes data from Table1
as Table1.RouteId
has an entry, but this data may not exist in Table2
.
I need to compare all the data, and if Table1.RouteId
is not in Table2
, then it should just fill the columns of Table2
like "Not existing" or something like that so I can see that the data is missing in Table2
, but does exist elsewhere.
How can I achieve this?