Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Mask Sensitive Information | String Functions
Functions in SQL

bookChallenge: Mask Sensitive Information

Taak

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 customers table.
  • For the masked_name column, concatenate the first letter of the name with a string of asterisks equal in length to the remaining characters in the name.
  • Ensure that only the first character of each name is visible, with the rest replaced by asterisks.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Mask Sensitive Information

Veeg om het menu te tonen

Taak

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 customers table.
  • For the masked_name column, concatenate the first letter of the name with a string of asterisks equal in length to the remaining characters in the name.
  • Ensure that only the first character of each name is visible, with the rest replaced by asterisks.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
single

single

some-alt