Re: dynamic column name
Date: Mon, 26 May 2008 04:53:01 -0700 (PDT)
On 25 mai, 13:33, NOVA <nova1..._at_gmail.com> wrote:
> Dear all,
> I have problem, the query as the following:
> 1: SELECT
> 2: CASE
> 3: WHEN PRODUCT_TYPE IN (SELECT PRODUCT_TYPE FROM PROD_T WHERE
> 4: THEN (SELECT RESULT FROM PROD_T WHERE
> 5: ELSE 0
> 6: END ACCEPT_OS
> 7: FROM PRODUCTS_T OUTER
> The problem in Line #5
> The output from inner query is 'SRC' and it is single row.
> The outer table 'PRODUCTS_T' has SRC column.
> I want specify the column name from inner query (line #5).
> It is like dynamic column name.
> How can solve it?
> Best Regards;
If you can, fix the database model instead of trying to find a solution to this nightmare. Received on Mon May 26 2008 - 06:53:01 CDT