Challenge: Mask Sensitive Information
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 5
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 2.86
Challenge: Mask Sensitive Information
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 5
single