Hi, I have a problem with a sql statement, I want you to show me the number of times a letter is repeated in this case H
in a table
SELECT SUBSTR(TRIM(CURP),11,1) AS GENERO FROM * 'tbl_name'
there is only the letter H or M shown for every record in the table