|
I'm running a complicated query on two tables with UNION all and I'd like the table names to show up in the result to compare them. Is it possible to have the name of the table show up in a select?
I don't want to hard code the name as I must save this query for use in a year's time. The table names change each year.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.