I have a query selecting records where one enumerative field must be !='N' and any one of six others must be
!='N' like:
I obviously have something wrong here and am looking for some help on whatever it is I am doing wrong.
TIA for any help,
-Allen
!='N' like:
Code:
$sql_text = ("SELECT * FROM orders WHERE invoiced != 'Y'
AND (
data_status != 'N' OR
art_status != 'N' OR
laser_status != 'N' OR
print_status != 'N' OR
insert_status != 'N' OR
mail_status != 'N' OR
)
ORDER BY to_mail_date ASC");
TIA for any help,
-Allen