Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

special left join 1

Status
Not open for further replies.

andreas57

Technical User
Sep 29, 2000
110
CH
im using following statement:

select $tblL.*,$tblT.desc,$tblT.text from $tblL left join $tblT using(id$tblL) where id$tblLang=2 || id$tblLang is null order by position

my problem is that the the enties from the 1. table aren't displayed if there is no entry in the 2. table eventhough i set the condition "|| id$tblLang is null". how can i do this with one statement?

andreas owen
 
sorry, the variables are irrelevant (hwo could you know) but the 2. question is important, here's the query:

select tblL.*,tblT.desc,tblT.text from tblL left join tblT using(idtblL) where idtblLang=2 || idtblLang is null order by position

idtblLang is in the 2 table (tblT)


andreas owen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top