"speakeasy" <nospam_artd(at)speakeasy(dot)net> writes:
> 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.
You probably need to rtrim() the CHAR field so that the trailing blanks
in it don't foul up the comparison to the TEXT field. Trailing blanks
are considered insignificant in CHAR comparisons ... but not in TEXT
comparisons. So,
WHERE rtrim(charfield) = textfield
should work.
regards, tom lane