compare - Simple value comparison in SQL -


i trying compare columns in database. have column valve size , column valve turns. need make sure valve turn value 3 times value + 2 of valve size value allowable varience of 1. i.e: valve size of 6 can return turn value between 19-21. going use not equal function flag records dont meet criteria.

if you're using ms sql, start:

select * table valveturn between valvesize * 3 + 1 , valvesize * 3 + 3 

where table name of table , valveturn & valvesize need actual column names.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -