select * from yourTable  where XXX like 'A%' and LEN(XXX)=2