Hi.

You may read:

  http://dev.mysql.com/doc/mysql/en/JOIN.html

  http://dev.mysql.com/doc/mysql/en/SELECT.html



There is a good description.

Searching in more than two tables (3 in my example) may be done

in such way:



  select t1.* from t1,t2,t3 where t1.a=t2.a and t1.b=t3.b



But using left or inner joins depends on results you are expecting. 





Steve Grosz <[EMAIL PROTECTED]> wrote:

> I am just now getting the hang of searching through 2 tables, and 

> getting the corresponding information using a pri & foreign key 

> (ID1=ID1) kinda thing.  How is this done with more than 2 tables?

> 

> I had asked on a different forum, but I got some funky select statement 

> using a left inner join, and lots of other statements that didn't make a 

> lot of sense to me.

> 

> Is that the way it would need to be done?  A inner join?  If so why?

> 

> Thanks!

> 

> Steve

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to