Tell me about a time you had to use SQL and a metric selection approach to evaluate fraud risk for Uber users, and how you handled feedback when your answer was not well received.
For the hands-on SQL portion, calculate each user's weighted fraud-risk score using only metrics marked for selection. Include users without usable selected metrics.
Output
- One row per Uber user with
user_id, user_name, selected_metric_count, and weighted_risk_score
- Include all users, order by score descending, then
user_id ascending
Output details
- Count only non-NULL selected metric values in
selected_metric_count.
- Calculate
weighted_risk_score as the weighted average of selected metric values using their weights.
- Round
weighted_risk_score to two decimal places.
- Return
0.00 when no usable selected metrics exist or the total weight is zero.