0
On my table IDENTIFICACAO_PESSOA
I have a column called IDENTIFICADOR
. This column receives CPF values. However, there are values there that do not correspond to CPF, that is, they are outside the standards of a CPF (999.999.999-99). How would a query
return records that are outside this standard ? And I also want records that contain more and less than 11 digits (numerical values).
You could use regular expression in your SQL query. http://www.devmedia.com.br/expressoes-regulares-em-banco-de-dados-muito-alem-do-like-parte-02/12790
– R.Santos
You will have to create a function, to validate whether Cpf is valid or not and then use this function in your query
– Jeferson Almeida