Thanks I need to learn the importance of ( and )
THX!!
the problem with you original query was precedence
what you need is
WHERE (CHKCANCEL = '0') AND (DITD IS NULL) AND( (CUSTOMERID = '52') OR
(CUSTOMERID = '62') OR
(CUSTOMERID = '72'))
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
Offline 87 posts
since Apr 2006