Rio Tinto interview question

How have you used SQL in a production environment?