Pergunta de entrevista da empresa DXC Technology

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