zachvaldez
asked on
SQL syntax correction
I have this sql statement which supposed goal is to select items based on the description field only if they do not have
the word 'Not in" or "Discontinued" in the beginning of the description field; s in
" Not in the list..." or "Discontinued item..." and so forth
SELECT Publisher,Book,Descrip,Cos t, List,pubid,RowLastUpDtByOp ,RowLastUp dtDtTi from Books where pubid = '276 ' and(descrip not like 'Not%' or descrip not like 'Discontinued %') order by id
For some reason I still get those data that has 'Not in" or "Discontinued' in the resultset.
Where am I making the mistakes?
the word 'Not in" or "Discontinued" in the beginning of the description field; s in
" Not in the list..." or "Discontinued item..." and so forth
SELECT Publisher,Book,Descrip,Cos
For some reason I still get those data that has 'Not in" or "Discontinued' in the resultset.
Where am I making the mistakes?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.