Jump to content

Syntax Problem


Charlatat

Recommended Posts

Ok, this is my query, SELECT * FROM TABLE WHERE (resultcode = "TNS") AND (ondate = #somedate#)This is working fine, however I need to eliminate all results that have a resultcode of "SLE,SLD,SL1, or SL2" between now and the "somedate".Can someone help me with the syntax? Thanks

Link to comment
Share on other sites

Ok, I think I worded my problem wrong. I don't need to delete records. I need to skip over records that meet the criteria I stated before AND not have a resultcode of "SLE,SLD,SL1,SL2" between now and the provided date. That way, I only get the records who have a resultcode of "TNS" on a certain date, and NOT the ones who have the other resultcode since the provided date.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...