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

bookChallenge: Mask Sensitive Information

Oppgave

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.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 5
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Mask Sensitive Information

Sveip for å vise menyen

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 5
single

single

some-alt