Telecom: Subscriber Display Name
Telecom: Subscriber Display Name
You are a CRM developer at the telecom operator LinkCell. The support team complains: the caller card is often blank because the subscriber name is scattered across sources. There is the official contract name (contract_name), the mobile-app nickname (app_nickname), and the phone number itself (msisdn) — always present. The product rule: show the contract name; if missing — the app nickname; if that is missing too — show the phone number.
Build the view for the support screen: for every subscriber output their id and the name the agent will see per the rule above.
Return columns:
- subscriber_id — subscriber identifier;
- display_name — the display name: the first non-empty of contract_name, app_nickname, msisdn.
Sort by subscriber_id ascending. Return all subscribers.
Exemplo de resposta esperada
É assim que se parece uma resposta correta: ela tem seu próprio número de linhas e não precisa coincidir com as tabelas do esquema. Sua resposta precisa retornar os mesmos nomes de colunas do exemplo: use AS para renomeá-las se for preciso.
| subscriber_id | display_name |
|---|---|
| 1 | Robert King |
| 2 | speedy |
| 3 | +15550003 |
Entre para ver seu histórico de envios
EntrarEntre para usar o AI Mentor
Entrar