select * from products where categoryid = ?
the other option is to set an active field, which could be a boolean column and set it to true or false, then select from 'active' columns only if you wanted to do updates rather than physical deletes
Reputation Points: 133
Solved Threads: 141
Veteran Poster
Offline 1,162 posts
since Aug 2008