Devensice coding during selection query