Hi,
I want to compare numerics values with a varchar type field, so i have this table (Account_Master_Group2):
where fields (Inicio and Fin) are nvarchar type, so i run this query:
but i got records out of the range from 50000000 and 89999999:
My question is: How can i handle that nvarchar fields as a numeric fields? to avoid records out of the range.
Thanks WORLD


Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 19, 2019, 7:33 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 19, 2019, 7:30 PM EDT
Sivakumar KonetiRank #1,557 · 1K reputationPosted Jun 19, 2019, 11:03 PM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Jun 20, 2019, 4:58 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 20, 2019, 7:33 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 20, 2019, 7:15 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 20, 2019, 7:43 PM EDT