Pergunta de entrevista da empresa Energy Aspects

What is the most complex logic you have solved in respect to RDBMS?