Pergunta de entrevista da empresa Amdocs

SQL from distinct with different cases of letters.