Thread: join help
View Single Post
Old 04-23-2007, 06:45 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
join help

table: n
n_id
text

table: f
f_id
n_id

table: a
f_id
title


i need to join these 3 tables but i'm having trouble. i get null data in the field's i'm requesting from table a.

Code:
select n.text, a.title
  from n
  left join f on n.n_id=f.n_id
  left join a on a.f_id=f.f_id
for suggestions, assume there is one record in each table with table f associating tables n and a.

any help would be appreciated.
__________________
Mike
sde is offline   Reply With Quote