Re: View - Join based on dis-similar data types

From: "speakeasy" <nospam_artd(at)speakeasy(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: View - Join based on dis-similar data types
Date: 2003-03-13 13:48:11
Message-ID: QNKdnanqAcK_Ee2jXTWcqw@speakeasy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Not sure if this ever made it to the group, I can't seem to find it in the
recent message lists.

"speakeasy" <nospam_artd(at)speakeasy(dot)net> wrote in message news:...
> I have a field defined as a character(50) data type, and the same field
> stored in a transition table as a text type.
>
> The view itself work based on the join, however sub-queries against the
view
> on that field do not return any data.
>
> Example:
>
> Table1
> ----
> T1Data - Character(50)
>
>
> Table2
> ----
> T2Data - Text
>
>
> View1:
> ---
> SELECT T1Data from Table1 JOIN Table2 ON (Table1.T1Data = Table2.T2Data);
>
>
> A select against View1
> SELECT * FROM View1 returns all relevant records, however, adding a WHERE
> clause produces no output.
>
> Please advise.
>
>

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2003-03-13 14:12:47 Re: What's wrong with this group by clause?
Previous Message Christoph Haller 2003-03-13 13:15:13 Re: Create function statement with insert statement