Thank you. The scary thing is that I used to know this. Of course there's an AND and OR.
btw, am I posting in the correct user forum for questions like this? I'm not sure what "for custom applications" means. I know there's another forum called "SAP on Sybase ASE"