I have customer numbers some of which are longer than 8 digits. How can I flag them so they are not counted?
I tried the following:
SELECT
t1.updte_user as staff_number,
(CASE WHEN (CAST(t1.updte_user) AS INT ) Integer not null check
((CAST(t1.updte_user)AS INT) between 0 and 99999999 THEN 1 else 0 ) end as
TRUE_STAFF
from old as t1;
What do I need to change?