dbTalk Databases Forums  

SQL syntax for joining tables from multiple Databases in Pervasive?

comp.databases.btrieve comp.databases.btrieve


Discuss SQL syntax for joining tables from multiple Databases in Pervasive? in the comp.databases.btrieve forum.



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

Default SQL syntax for joining tables from multiple Databases in Pervasive? - 07-10-2007 , 02:15 PM






What is the SQL syntax for joining tables from multiple Databases in
Pervasive?

Thx.


Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: SQL syntax for joining tables from multiple Databases in Pervasive? - 07-12-2007 , 11:38 AM






Like Other database environments, use the "." notation:

SELECT T1.*, T2.*
FROM Table1 T1
INNER JOIN OtherDatabase.Table2 T2
ON (T1.ForeignKey = T2.PrimaryKey)

Use your own names, of course. Also, please note that it is the Named
Database (DBName) that must be referenced, NOT the DSN name. As such,
you cannot issue this across servers, either.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive Service & Support Class - 08/28/2007 ***


datenisis wrote:

Quote:
What is the SQL syntax for joining tables from multiple Databases in
Pervasive?

Thx.


--



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.