Link to home
Start Free TrialLog in
Avatar of Larry Rungren
Larry RungrenFlag for United States of America

asked on

TSQL SQL Server 2008

(select case ump.SIZE_OF_FIRM
 when (ump.SIZE_OF_FIRM >= 2 and ump.SIZE_OF_FIRM <= 5) then 4
 when (ump.SIZE_OF_FIRM between 6 and 10) then 3
 when (ump.SIZE_OF_FIRM between 11 and 25) then 2
 when (ump.SIZE_OF_FIRM > 25) then 1
end) as GroupTot,


The > throws an error
The "between" throws an error

How to set a value based on a range of a variable or constant
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Rungren

ASKER

KUDOS * 2

Saved my Friday from becoming Saturday
That's what were here for.  Good luck with your project.  -Jimbo
I've requested that this question be closed as follows:

Accepted answer: 0 points for Jeff_Kingston's comment #a39528564

for the following reason:

How many times do I have to do this?
Assuming that my first comment answered your question, you need to click on 'Accept as solution' on that comment, which will end the question.