CBSE Class 12 Informatics Practices Question 49 of 79

Database Query using SQL — Question 7

Back to all questions
7
Question

Question 7

Define a function. Why are they useful?

Answer

A function can be defined as a set of predefined commands which, when called, performs certain operations and returns a single value or a result set.

Functions are useful because they allow for code reusability, readability by breaking down complex tasks into smaller units.