Rexolio
Technical User
- Aug 29, 2001
- 230
Hi everyone,
Got a SQL Server 2000 database table that has been around for ages with thousands of records in them. There is a field that holds budget information. Most of the time all entries go in like this:
10000 is entered for $10,000
15000 is entered for $15,000
However, the field type is not currency or number because the database is so old and has information on clients entered from years ago where some of the entries, instead of being 10000 for $10,000, may have been entered "10k" or even worse, "don't know" and other entries like this.
Therefore, the field type is Nvarchar.
So, we have form that clients can query and I'm trying to set it up where they can use budget as a filter. However, when someone queries something like:
budget > 5000 and budget < 20000 I get the following type of entries:
6000
600
7500
8000
800
2000
20000
Not really sure how to resolve this! It would take tons of time to go through and clean up the database in order to change the file type.
Thanks for your time.
![[bugeyed] [bugeyed] [bugeyed]](/data/assets/smilies/bugeyed.gif)
rexolio@bellsouth.net
"I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes
Got a SQL Server 2000 database table that has been around for ages with thousands of records in them. There is a field that holds budget information. Most of the time all entries go in like this:
10000 is entered for $10,000
15000 is entered for $15,000
However, the field type is not currency or number because the database is so old and has information on clients entered from years ago where some of the entries, instead of being 10000 for $10,000, may have been entered "10k" or even worse, "don't know" and other entries like this.
Therefore, the field type is Nvarchar.
So, we have form that clients can query and I'm trying to set it up where they can use budget as a filter. However, when someone queries something like:
budget > 5000 and budget < 20000 I get the following type of entries:
6000
600
7500
8000
800
2000
20000
Not really sure how to resolve this! It would take tons of time to go through and clean up the database in order to change the file type.
Thanks for your time.
![[bugeyed] [bugeyed] [bugeyed]](/data/assets/smilies/bugeyed.gif)
rexolio@bellsouth.net
"I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes