Bernd: Warum funktioniert die Abfrage nicht ???

Beitrag lesen

Hallo,

Warum funktioniert diese abfrage nicht:

select * from tabelle_1 tab1 , tabelle_2 tab2 where tab1.obj_head like '%suchstring%' or tab1.obj_str like '%suchstring%' or tab1.obj_ort like '%suchstring%' and tab1.obj_category_id = 1 and tab1.obj_id = tab2.obj_id

Die Syntax ist richtig, also es gibt keinen Datenbankfehler.
Leider sind auch Objekte aus den anderen Kategorien (obj_category_id) auch bei der Ausgabe. Woran kann das liegen ?

mfg

Bernd