Pergunta de entrevista da empresa loanDepot

How do you calculate weighted average in SQL?