The present invention handles non-standard record formats and records with wildcards that represent ranges oftelephone numbers assigned to predominant emergency service numbers.It should be understood that various alternatives and modifications can be devised by those skilled in the art, and the present invention can be applied to other types of databases.