sql hard question

From: limorr(at)scepia(dot)com (limlim)
To: pgsql-sql(at)postgresql(dot)org
Subject: sql hard question
Date: 2001-05-30 11:41:24
Message-ID: 875516e7.0105300341.1ae6545b@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

i am trying to build a query in sql that compares between 2 tables one
hold to field and the other hold the 2 fields in one
example:
table1:EN,12
table2:EN.12
how can i compare between the tables throw that field
i try with this query but it doesnt work:

SELECT * FROM dbo.CNT_DOC_LANGS x INNER JOIN dbo.CNT_DOCS2QUEST y ON
(CAST(x.DOC_ID AS varchar) + '.' + RTRIM(x.LANG)) t = y.SRC_ID

please help

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Renato De Giovanni 2001-05-30 13:25:24 Re: Difficult SQL Statement
Previous Message tjk@tksoft.com 2001-05-30 10:40:39 Re: Case Insensitive Queries