I am programming in C# 2010 Express.
I have a SQL database in my program, one of its tables called HightAndWeightTable that has four columns. I want to select a value from the fourth column that is called Risk based on the height that the user enter in the domain in up down box.
Thus, my SQL query in the program is :
SELECT Risk
FROM HightAndWeightTable
WHERE Hight LIKE '%" + domainUpDown1.Text + "%'"
... but this didn't work.
Also, how do we write a SQL query that has a range, e.g. if I want to say a value is in between a range of values?