Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Mask Sensitive Information | String Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Mask Sensitive Information

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 5
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Mask Sensitive Information

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 5
single

single

some-alt