Create Cursor tt (a C(2), b C(2), c C(2), d C(2), e C(2), f C(2))
Insert Into tt Values ("01", "05", "10","15","20","21")
Insert Into tt Values ("02","08","14","21","28","33")
Insert Into tt Values ("03","06","07","11","19","22")
Select *,Iif(Val(a)<10,1,0)+Iif(Val(b)<10,1,0)+Iif(Val(c)<10,1,0)+Iif(Val(d)<10,1,0)+Iif(Val(e)<10,1,0)+Iif(Val(f)<10,1,0) As N From tt