Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Hi All.
If I have a piece of SQL like:-
SELECT some_cols FROM DB1:atable UNION
SELECT some_cols FROM DB2:atable UNION
SELECT some_cols FROM DB3:atable
How can I also return as a column the database the row matches so I can
differentiate between DB1, DB2 and DB3 in the above example?
I've tried a few things but no success so far. Any inspiration appreciated!
TIA.
David
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.