UpLift (CA) interview question

python and sql questions related to joins