top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the Advantages of using CTE?

+2 votes
510 views
What are the Advantages of using CTE?
posted Nov 28, 2014 by Roshan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

• 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 CTEs 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.

answer Nov 28, 2014 by Manikandan J
...