JLohman
asked on
SQL WHERE field LIKE any number
I am using
- MSAccess
- Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
- FrontPage 2003
I am trying to pull a report for a list of titles that being with a number 0-9. I have the following code working for an alphabet search:
"WHERE BookTitle LIKE 'B%' and ACTIVE LIKE 'Yes' "
Do I have to do an OR statement for each number or is there a an inclusive code?
- MSAccess
- Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
- FrontPage 2003
I am trying to pull a report for a list of titles that being with a number 0-9. I have the following code working for an alphabet search:
"WHERE BookTitle LIKE 'B%' and ACTIVE LIKE 'Yes' "
Do I have to do an OR statement for each number or is there a an inclusive code?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.