Pregunta de entrevista de loanDepot

How do you calculate weighted average in SQL?