Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Tools > Re: 3 tables jo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 2662 of 2833
Post > Topic >>

Re: 3 tables join

by DA Morgan <damorgan@[EMAIL PROTECTED] > Nov 8, 2007 at 09:53 AM

Nick wrote:
> I have have 3 tables TableA, TableB and TableC. TableA holds the keys
> to TableB and TableC. I need a query which will display the details
> from TableB and TableC depending on the key in TableA.
> 
> For eg.
> 
> 
> TableA - columns {id, relatedkey, recordType} ===recordType will hold
> values like TableB or TableC
> TableB - columns{id, column1}
> TableC - columns{id, column1}
> 
> 
> the query should match the related key to the id of TableA or table B
> based on recordType and show the column1 value with the TabelA id so
> output for this should be
> 
> 
> id     recordType       column1
> 
> 
> 1      TableB             value of TableB column1
> 2      TableC             value of TableC column1
> 
> 
> Please help.
> 
> 
> Cheers
> Nick

So what is the issue? Post your best attempt and we will guide you with 
a hint or two. First write the SELECT clause, then the FROM clause, and
make your best attempt at the WHERE clause.

Post your version number and any error message you receive.
-- 
Daniel A. Morgan
University of Wa****ngton
damorgan@[EMAIL PROTECTED]
 (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
 




 2 Posts in Topic:
3 tables join
Nick <nachiket.shirwal  2007-11-08 07:46:23 
Re: 3 tables join
DA Morgan <damorgan@[E  2007-11-08 09:53:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 19:58:59 CST 2008.