Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

What are the Advantages of using CTE?

Add comment
Views: 52
Votes: 0
Comments: 0
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.
Others in this Category
document Q: When do you use WHERE clause and when do you use HAVING clause?
document What is sub-query? Explain properties of sub-query?
document What is RAISEERROR?
document What are the different index configurations a table can have?
document Q: Can a view be updated/inserted/deleted? If Yes under what conditions ?
document What’s the difference between a primary key and a unique key?
document What does it mean to have QUOTED_IDENTIFIER ON? What are the implications of having it OFF?
document Q: What is the difference between Rule based optimization and Cost based optimization in Oracle SQL queries?
document What is Log Shipping?
document What command do we use to rename a db, a table and a column?
» More articles



RSS