One of row will have the data as 30 > 50, or 170 > 40 etc
How to evalute this varchar column data to find what it represents true or false.
SQL Server 2008 R2 and above.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you MUST keep your data in this (painful) form, then your best bet will probably be to parse the string into it’s individual parts. Something like the following steps:
I would personally recommend finding a way to calculate this before you insert into the database. What you are storing and what you need are very far apart right now.