SQL:comparison using between

Original text of this message