Jul 31, 2007 #1 davmold IS-IT--Management Joined Jul 16, 2007 Messages 29 Location US I am still learing ASP I know you can do a <, >, =, etc. but how could you do a between for example I would like to take the numbers between 1 and 7 can this be done with asp? thank you
I am still learing ASP I know you can do a <, >, =, etc. but how could you do a between for example I would like to take the numbers between 1 and 7 can this be done with asp? thank you
Jul 31, 2007 #2 monksnake Programmer Joined Oct 14, 2005 Messages 2,145 Location US Like this: Code: a > 1 and a < 7 There is no direct 'between' operand. <. Upvote 0 Downvote
Aug 1, 2007 #3 travisbrown Technical User Joined Dec 31, 2001 Messages 1,016 Although, if you wanted it to match the T-SQL BETWEEN operand, you'd use a >= 1 AND a <= 7. BETWEEN includes the outer bounds. I wish ASP had a BETWEEN operand. Upvote 0 Downvote
Although, if you wanted it to match the T-SQL BETWEEN operand, you'd use a >= 1 AND a <= 7. BETWEEN includes the outer bounds. I wish ASP had a BETWEEN operand.
Aug 2, 2007 #4 xwb Programmer Joined Jul 11, 2002 Messages 6,828 Location GB Depends on how you think. Some people like the a on the left, some on the right, some on the inside and some on the outside. Just a matter of style. Code: a > 1 and a < 7 ' on the left a > 1 and 7 > a ' on the outside 1 < a and a < 7 ' on the inside 1 < a and 7 > a ' on the right Upvote 0 Downvote
Depends on how you think. Some people like the a on the left, some on the right, some on the inside and some on the outside. Just a matter of style. Code: a > 1 and a < 7 ' on the left a > 1 and 7 > a ' on the outside 1 < a and a < 7 ' on the inside 1 < a and 7 > a ' on the right