| From: | Jost Richstein <jrichstein(at)softdecc(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
| Subject: | Alias-Error |
| Date: | 2003-10-10 08:40:38 |
| Message-ID: | 3F867086.DF4DEDF0@softdecc.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
Hi,
I am running a query with alias (a self join) against
version 7.3.4 on Suse Linux 7.3 and on FreeBSD (v5?).
It runs fine on Linux, but produces an error on
FreeBSD: "unknown alias C2". And btw: the query runs
on every other DB I have tried...
The Query is something like this:
SELECT DISTINCT C2.cmc_mchap, C2.cmc_sort
FROM sis_cmca, sis_cmca C2
WHERE cm_status != 'U' AND sis_cmca.cmc_name='INTERN2000' AND
C2.cmc_name='INTERN2000' AND sis_cmca.cmc_mchap=C2.cmc_mchap
....
What causes this error? Workarounds?
Jost
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martin Marques | 2003-10-10 11:38:53 | Re: Response from MySql AB (Re: Humor me: Postgresql vs. |
| Previous Message | Richard Huxton | 2003-10-10 08:13:50 | Re: [SQL] SQL query problem (many table in FROM statement and many LEFT JOIN's) |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jagan reddy | 2003-10-10 11:46:10 | HELP ME |
| Previous Message | Richard Huxton | 2003-10-10 08:13:50 | Re: [SQL] SQL query problem (many table in FROM statement and many LEFT JOIN's) |