View Single Post
  #2  
Old 10-07-2006, 07:47 AM
inder inder is offline
Senior Member
 
Join Date: Sep 2006
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 17
inder is on a distinguished road
Default

To get information from a second table based on a first, you need fields in both tables that are in common, e.g.:

SELECT t1.*, t2.*
FROM t1
JOIN t2 ON t1.t2id = t2.id -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - evaluating while querying?
View Single Post
  #2  
Old 10-07-2006, 07:47 AM
inder inder is offline
Senior Member
 
Join Date: Sep 2006
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 17
inder is on a distinguished road
Default

To get information from a second table based on a first, you need fields in both tables that are in common, e.g.:

SELECT t1.*, t2.*
FROM t1
JOIN t2 ON t1.t2id = t2.id -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote