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

bookChallenge: Mask Sensitive Information

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 5
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Mask Sensitive Information

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 5
single

single

some-alt