Lavender: WHERE ... AND ... OR - Frage

Beitrag lesen

Hallo zusammen,

ich habe folgenden Befehl:

SELECT Nr, Titel, Kat
FROM page
WHERE TextA LIKE '%test%'
AND   Activator = 'activ'
OR    TextB LIKE '%test%'
AND   Activator = 'activ'
ORDER BY Titel ASC

muss ich das zweite AND Activator = 'activ' mit reinsetzen, oder reicht dieser Befehl (in beiden - TextA und TextB - muss Activator "activ" sein):

SELECT Nr, Titel, Kat
FROM page
WHERE Activator = 'activ'
AND   TextA LIKE '%test%'
OR    TextB LIKE '%test%'
ORDER BY Titel ASC

Danke im Voraus.

Gruß
Lavender