Miles IT interview question

Views vs functions vs procedures