Re: Database efficiency question
Posted by: denis k
Date: January 07, 2011 11:18PM

I kind of understand.

For example:

Product table
-*prod_id
-prod_name
-prod_desc

Customer table
-*cust_id
-pid
-username

SELECT username FROM customer LEFT JOIN products ON
customer.pid=products.prod_id;

Something like this would give me which products each customer has? Am I kind of getting close? I am new to the JOIN scene.

Options: ReplyQuote


Subject
Written By
Posted
January 04, 2011 10:46PM
January 06, 2011 09:11PM
Re: Database efficiency question
January 07, 2011 11:18PM
January 08, 2011 12:59AM
January 08, 2011 10:02AM
January 08, 2011 10:38AM
January 08, 2011 11:02AM
January 16, 2011 03:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.