Pregunta de entrevista de Jabil

How can database queries be optimized either with indices or with denormalization?