criteria not working properly?

  • Try putting the statement in the WHERE part.

    where CustID not like '%-%'

  • I tried that and it doesent work either

  • What is the data type of the column?

    Just to clarify, your data looks like this in the ID column.

    1234567

    234-567

  • The ID is char(12)... The two examples you gave are what you could expect in this database.

  • try running a query directly against the table itself with just the where clause from above and see if it returns the desired results.

    select top 20 percent CustomerID from Table where CustomerID not like '%-%'

    That should tell us if it is something with the query or the view.

Viewing 5 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply