Hello,
First thank you for your time.
My table is of the form:
Column1: Column Name=Id, Data Type=int
Column2: Column Name=Balance, Data Type=nvarchar(20)
The data in the table looks like this:
Row1: 1, $15,000.00
Row2: 2, $2.00
Row3: 3, -$15.45
When I execute this query:
select * from Clients where Balance > '$15'
I get the following result set returned:
Row1: 1, $15,000.00
Row2: 2, $2.00
Row3: 3, -$15.45
I was obviously only expecting to see Row1.
What is going on here? I would like to use the nvarchar data type. Is there a way to alter the structure of the query to get the proper result? Or must I use the Money data type?
Thank you for your time.
Michael
Start Free Trial