Pregunta de entrevista de DXC Technology

Sql joins, second highest value in a table, Difference between stored procedure and function