Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 2nd, 2005, 02:21 AM
simbil simbil is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 2 simbil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 47 sec
Reputation Power: 0
Arrow Select across tables

Hi,

I'm migrating code from MSSQL to FB and have a section of code that uses cross table queries like this:

(MSSQL) select * from db1.dbo.table1 ...

The app fails on FB with table not found. How do I use a 'fully qualified' name in FB?

I need to use a couple of tables in the same query as it is compares values from 2 tables.

Thanks in advance,

Simon

Reply With Quote
  #2  
Old September 2nd, 2005, 03:06 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,906 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 7 h 8 m 35 sec
Reputation Power: 279
Quote:
I need to use a couple of tables in the same query as it is compares values from 2 tables.

What do you mean? Do they have the same name but are placed in different databases?

Reply With Quote
  #3  
Old September 2nd, 2005, 04:09 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 32 m 11 sec
Reputation Power: 8
Quote:
Originally Posted by simbil
Hi,

I'm migrating code from MSSQL to FB and have a section of code that uses cross table queries like this:

(MSSQL) select * from db1.dbo.table1 ...

The app fails on FB with table not found. How do I use a 'fully qualified' name in FB?

I need to use a couple of tables in the same query as it is compares values from 2 tables.

Thanks in advance,

Simon


What do you mean by "cross table query"? It is natural thing to do ;-)

I do, however, think that you need cross database query, and that is not possible in query.
You can try alternative approach, using IBExpert's tools: IBEBLOCK

http://www.ibexpert.com/download/ibeblock_docu.txt

--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net

* Firebird Foundation Committee member.
- Join today at http://www.firebirdsql.org/ff/foundation
* JEDI VCS contributor
http://jedivcs.sourceforge.net/
* Firebird and Fyracle news
http://www.fyracle.org

Reply With Quote
  #4  
Old September 2nd, 2005, 05:53 AM
simbil simbil is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 2 simbil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 47 sec
Reputation Power: 0
cross table query

Sorry, I meant querying across databases.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Select across tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT