heres a SQL statement...
SELECT * FROM portal_main P, portal_cat_title C WHERE P.category = C.category AND ( ( name like '%fyi%' ) OR ( portal_keywords like '%fyi%' ) ) AND ((P.unit_id = '') OR (unit_id like '%NEB%')) OR (unit_id like '%NULL%') ORDER BY name
I want the results to show all the ones with unit_id being blank, NEB, and NULL. I couldn t get it to show the NULLs, I got the blank ones and the NEB ones. Thanks in advance!
SELECT * FROM portal_main P, portal_cat_title C WHERE P.category = C.category AND ( ( name like '%fyi%' ) OR ( portal_keywords like '%fyi%' ) ) AND ((P.unit_id = '') OR (unit_id like '%NEB%')) OR (unit_id like '%NULL%') ORDER BY name
I want the results to show all the ones with unit_id being blank, NEB, and NULL. I couldn t get it to show the NULLs, I got the blank ones and the NEB ones. Thanks in advance!