Intelligencia interview question

Transforming data through a Python script or through SQL in more efficient?