amrigo
05-22-2006, 12:46 PM
Hi
I would like to retrieve only the results with int_cod = 13
(maintaining the others filters)
but in the code below i do get many int_cod different than 13
How it be done to retrieve only the recoerds with int_cod 13 ?
SELECT * FROM the_database
WHERE 1=1
AND int_cod =13
AND ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
OR ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
OR ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
OR ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
and int_published = 1
I would like to retrieve only the results with int_cod = 13
(maintaining the others filters)
but in the code below i do get many int_cod different than 13
How it be done to retrieve only the recoerds with int_cod 13 ?
SELECT * FROM the_database
WHERE 1=1
AND int_cod =13
AND ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
OR ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
OR ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
OR ( txt_text LIKE '%oneword%' OR txt_other_text LIKE '%oneword%' )
and int_published = 1