PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

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 May 10th, 2003, 08:19 PM
SeenGee SeenGee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 347 SeenGee User rank is Private First Class (20 - 50 Reputation Level)SeenGee User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 14 h 41 m 27 sec
Reputation Power: 6
sql multi table select

i need to perform a select on 5 tables in a postgres db, table a is linked to table b through an 'id' explicity created in a and linked as foreign key in b. table b creates a primary key 'number' which is declared as a foreign key in c, d and e. each number is related to an id from table a.
i want to perform a select that pulls from the database every column from every table for each instance of 'number'. in tables c d and e there may be multiple entries for each number.

Thanks

Reply With Quote
  #2  
Old May 10th, 2003, 08:40 PM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
Now you've decided you are using postgres and not mysql? If you posted in mysql by mistake previously, please go back there and delete your post.

Thank you.
__________________
FSBO (For Sale By Owner) Realty

Reply With Quote
  #3  
Old May 10th, 2003, 08:53 PM
SeenGee SeenGee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 347 SeenGee User rank is Private First Class (20 - 50 Reputation Level)SeenGee User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 14 h 41 m 27 sec
Reputation Power: 6
yeah sorry, posted by mistake, didnt see the delete function at first.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > sql multi table select


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