Subject | Re: [ib-support] JOIN statement |
---|---|
Author | Martijn Tonies |
Post date | 2002-06-04T10:59:55Z |
Hi,
What's wong with using:
SELECT DISTINCT A.ID, A.TYPE, B.START_DATE FROM CAMPAIGN A
LEFT JOIN CAMAPIGN_DELIVER B
ON A.ID = B.ID
WHERE A.USER_NAME = 'Benny'
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
> I'm new in FireBird, I have an Oracle syntax :Actually, it's Firebird who has a problem with your syntax.
>
> SELECT C.* FROM
> (SELECT DISTINCT A.ID, A.TYPE, B.START_DATE FROM CAMPAIGN A
> LEFT JOIN CAMAPIGN_DELIVER B
> ON A.ID = B.ID
> WHERE A.USER_NAME = 'Benny') C
>
>
> I have a problem with that SQL syntax on FireBird.
What's wong with using:
SELECT DISTINCT A.ID, A.TYPE, B.START_DATE FROM CAMPAIGN A
LEFT JOIN CAMAPIGN_DELIVER B
ON A.ID = B.ID
WHERE A.USER_NAME = 'Benny'
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."