Challenge: Mask Sensitive Information
Tarefa
Swipe to start coding
Write a query to anonymize customer names by replacing all but the first letter of each name with asterisks.
- Select all columns from the
customerstable. - For the
masked_namecolumn, concatenate the first letter of thenamewith a string of asterisks equal in length to the remaining characters in thename. - Ensure that only the first character of each name is visible, with the rest replaced by asterisks.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 5
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 2.86
Challenge: Mask Sensitive Information
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Write a query to anonymize customer names by replacing all but the first letter of each name with asterisks.
- Select all columns from the
customerstable. - For the
masked_namecolumn, concatenate the first letter of thenamewith a string of asterisks equal in length to the remaining characters in thename. - Ensure that only the first character of each name is visible, with the rest replaced by asterisks.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 5
single