× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

If the table names change each year, won't you be maintaining the script in
a year's time anyway? Why is it a problem to make three changes when you
already need to make two?

A better answer might be to do this in an RPG program, where you can do
whatever you want, programmatically.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"We must believe in luck. For how else can we explain the success of those
we don't like?"
-- Jean Cocteau




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.