php - How to use 'between' in select statement -


this supposed easy solution can't ahead around it. have table enter image description here

here query

 $salary=2000;    select deductions nhif_tbl to_end <=$salary , start_from >= $salary; 

the query returns null. question how modify query in order correct deductions in case '60'

select deductions nhif_tbl to_end >=$salary , start_from <= $salary; 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -