Hello,
I would like to join two tables: TableA and TableB. The first column of both tables is the same: Date. The other columns are different and also the number of columns is not known.
I would like that the resulting table starts with column Date, then shows the remaining columns of TableA and then the remaining columns of TableB.
At the moment I am using the following query:
SELECT [TableA].*, [TableB].*
FROM [TableA] INNER JOIN [TableB] ON [TableA].Date = [TableB].Date
ORDER BY [TableB].Date;
The resulting table has joined both TableA and TableB completely, including two times the Date column. I would like the second Date column to be deleted.
Thanks a lot,
Lanox
I would like to join two tables: TableA and TableB. The first column of both tables is the same: Date. The other columns are different and also the number of columns is not known.
I would like that the resulting table starts with column Date, then shows the remaining columns of TableA and then the remaining columns of TableB.
At the moment I am using the following query:
SELECT [TableA].*, [TableB].*
FROM [TableA] INNER JOIN [TableB] ON [TableA].Date = [TableB].Date
ORDER BY [TableB].Date;
The resulting table has joined both TableA and TableB completely, including two times the Date column. I would like the second Date column to be deleted.
Thanks a lot,
Lanox