human_anomaly
Registered User.
- Local time
- Yesterday, 19:10
- Joined
- Apr 12, 2004
- Messages
- 69
I am trying to check the value of a variable in a query. The problem is that the value is in the middle of a string. such as "Account# f2b5" I want to check the very first number of the account because that tells which branch it is from. I tried something like this: CASE WHEN ([AccountNum] = 0) THEN 0 ELSE CASE WHEN (mid([AccountNum] , 11 , 1) = 1) THEN 2 ELSE 3 END END
The query says that mid is not recognized. Is there any way to check this value in a query?
The query says that mid is not recognized. Is there any way to check this value in a query?