pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: speakeasy <nospam_artd@speakeasy.net>
To: pgsql-sql@postgresql.org
Subject: View - Join based on dis-similar data types
Date: Wed, 5 Mar 2003 14:59:33 -0500
Message-ID: <gdacnSAwcOe6yvujXTWcoA@speakeasy.net> (raw)

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.






view thread (4+ messages)  latest in thread

Message-ID: <gdacnSAwcOe6yvujXTWcoA@speakeasy.net>
Permalink:  ../gdacnSAwcOe6yvujXTWcoA@speakeasy.net/
Also on:    postgresql.org/message-id/gdacnSAwcOe6yvujXTWcoA@speakeasy.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nospam_artd@speakeasy.net
  Subject: Re: View - Join based on dis-similar data types
  In-Reply-To: <gdacnSAwcOe6yvujXTWcoA@speakeasy.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox