Hi, If I understand your question right, this should do the trick.
SELECT * FROM customers c, cust_packages cp
WHERE c.cust_custnr = cp.cpack_usernr GROUP BY cpack_usernr
HAVING count( * ) =1 AND cpack_canceldate != '0000-00-00'
This will select all the customers with only 1 record in table cust_packages (meaning, they have not registered again) and their canceldate can be anything but not 0000-00-00.
Cheers!
Nav
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
Offline 3,878 posts
since Nov 2007