MySQL Forums
Forum List  »  Newbie

Re: SUM problem.
Posted by: Patric Andersson
Date: March 18, 2009 06:03AM

I've read more and actually found a nice tutorial about join/left join/right join that made me understand how join works a bit better.

However, all the info I've found on join only join 2 different tables, is it possible to join 3 tables in a single query ?

I've found examples of SELECTs inside SELECTs, is that possible the way I should be heading ?

Kind of like (yes, this is not a correct query but just to put up an example).
SELECT whatever, count (*) AS more,
(SELECT whatever JOIN whatever2),
(SELECT whatever2 JOIN whatever3)
I know that might not be a good example, but is it possible to join 3 tables in that way ? Or is there any other way you join 3 tables together ?
I know I have to read more and hopefully find more tutorials, but a point in the right direction (maybe a few links) would be greatly appriciated :)

Options: ReplyQuote


Subject
Written By
Posted
March 12, 2009 03:29AM
March 12, 2009 09:52AM
March 13, 2009 07:10PM
March 13, 2009 11:10PM
March 14, 2009 04:01PM
March 14, 2009 06:40PM
March 15, 2009 07:54AM
March 15, 2009 10:41AM
March 15, 2009 10:35PM
March 16, 2009 09:33AM
March 16, 2009 09:52AM
March 16, 2009 02:46PM
March 16, 2009 04:15PM
March 17, 2009 02:11PM
March 17, 2009 05:03PM
March 17, 2009 06:31PM
March 17, 2009 10:17PM
Re: SUM problem.
March 18, 2009 06:03AM
March 15, 2009 05:41PM
March 15, 2009 07:14PM
March 16, 2009 08:34AM
March 18, 2009 12:52AM
March 21, 2009 05:58AM
March 21, 2009 11:13AM
March 22, 2009 05:01PM


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.