Re: Query Table Name

From: joel garry <joel-garry_at_home.com>
Date: Mon, 3 Nov 2008 13:09:13 -0800 (PST)
Message-ID: <5bfdf7be-7ecb-4b14-9f77-b7e2c178725a@v22g2000pro.googlegroups.com>


On Nov 3, 12:55 pm, artme..._at_gmail.com wrote:
> If you are joining one or more tables, is there a way to know which
> table the value came from?  For example:
>
> SELECT DISTINCT(id),
> DECODE(<table_name>,value,<table_name>,value,<table_name>,value)........
> FROM a, b, c
> WHERE a.id = b.id
>     AND a.id = c.id;
>
> In this same query, can I get the table name the name of the table the
> value actually came from?

Can you give an example where this works without error? If you are getting an error, care to share? Could the value include the table?

jg

--
@home.com is bogus.
Send it home to mother in a cardboard box.
Received on Mon Nov 03 2008 - 15:09:13 CST

Original text of this message