dbTalk Databases Forums  

Re: Outer Join in PSQL 7

comp.databases.btrieve comp.databases.btrieve


Discuss Re: Outer Join in PSQL 7 in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rok Debeljak
 
Posts: n/a

Default Re: Outer Join in PSQL 7 - 07-24-2003 , 01:56 AM






SELECT * FROM "Table1", "Table2"
WHERE "Table1"."JoinField" = "Table2"."JoinField" (+)

Good day,
Rok

Adam Augusta wrote:
Quote:
Good day, gents.

I'm trying to do a very simple outer join in Pervasive SQL 7. Is it
possible? I know that 8 can do it, but upgrading is not an option.

SELECT * FROM "Table1" LEFT OUTER JOIN "Table2" ON "Table1"."JoinField" =
"Table2"."JoinField"

returns the error: "The syntax in the WHERE clause is invalid".
The older syntax:

SELECT * FROM "Table1", "Table2" WHERE "Table1"."JoinField" =*
"Table2"."JoinField"

returns the error: "The syntax for an expression or restriction clause is
invalid."

You can't call yourself SQL if you can't do outer joins. Is there a way
to do an outer join in PSQL7, or do I have to revert to a bunch of ugly
subqueries?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.