Thread: join help
View Single Post
Old 04-24-2007, 01:05 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 704
DJMaze is on a distinguished road
Code:
select n.text, a.title, f.f_id
  from n, f
  left join a on a.f_id=f.f_id
  where n.n_id=f.n_id
Some databases need the relation in the select.
The "inner join" of n+f makes sure that both n and f exist
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote