Answer»
- Using CTE improves the readability and MAKES maintenance of complex queries easy.
- The QUERY can be divided into separate, simple, logical building blocks which can be then used to build more complex CTE's until FINAL RESULT set is generated.
- CTE can be defined in functions, stored procedures, TRIGGERS or even views.
- After a CTE is defined, it can be used as a Table or a View and can SELECT, INSERT, UPDATE or DELETE Data.
|