OrWolf
MIS
- Mar 19, 2001
- 291
I'm attempting to query against a table to pull only records where the number in a particular field doesn't have a decimal.
Data
ProjectID OutlineNo
1234 1
1234 2
1234 2.1
So in the case above I don't want the record with an outline number of 2.1. The following is the best I've come up with but it doesn't seem very efficient.
SELECT * FROM Projects WHERE OutlineNo NOT LIKE '%.%'
Any other ideas would be appreciated. Thank you.
Data
ProjectID OutlineNo
1234 1
1234 2
1234 2.1
So in the case above I don't want the record with an outline number of 2.1. The following is the best I've come up with but it doesn't seem very efficient.
SELECT * FROM Projects WHERE OutlineNo NOT LIKE '%.%'
Any other ideas would be appreciated. Thank you.