Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql Help
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01439765
Message ID:
01439822
Views:
31
>>
>>Because of BETWEEN you're using. You need to use > MinWeight as George did.
>
>
>Hmmm, And what if you have exact 5001?
>The range is always one + the previous higher.

>=MinWeight.

The point was that your solution

INNER JOIN @ttt TestMe ON Truck.overweight BETWEEN TestMe.minweight AND TestMe.maxweight

used wrong INNER JOIN condition. You wanted to put PriorWeight here as well.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform