Teradata interview question

difference between store procedure and cursor?