S
Scott
How do I include a column in a union query that displays the table name where
the data came from in the row. For example, I query CustomerName and Amount
from from Table1, Table2 and Table3 and I want the record or row to display
which table it is from, either Table1, Table2 or Table3. So my query results
would look like this.
Customer Name, Amount, Table
Bob, $25, Table1
John, $30, Table3
Carl, $18, Table2
Thanks,
the data came from in the row. For example, I query CustomerName and Amount
from from Table1, Table2 and Table3 and I want the record or row to display
which table it is from, either Table1, Table2 or Table3. So my query results
would look like this.
Customer Name, Amount, Table
Bob, $25, Table1
John, $30, Table3
Carl, $18, Table2
Thanks,