From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
---|---|
To: | limorr(at)scepia(dot)com, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: sql hard question |
Date: | 2001-06-05 23:32:19 |
Message-ID: | web-67654@davinci.ethosmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Limlim,
Please post table definitions and some sample data. Your problem does
not look that challenging and there is probably a simple reason that
you're having trouble with it.
> 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
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-06-05 23:45:55 | Re: plperl |
Previous Message | clayton cottingham | 2001-06-05 22:09:06 | plperl |