What are the advantages of using cte?
Answer / Mohit Tripathi
Common Table Expressions (CTEs) provide several benefits, including readability, modularity, and performance. They allow you to create temporary results sets that can be used multiple times within a query, making the code more maintainable and easier to understand.nnCTEs also offer better performance for complex queries because they are evaluated only once, reducing the need for repeated computations.
| Is This Answer Correct ? | 0 Yes | 0 No |
i need to know how i display department which has salary > =5000 for the below table Department ----------- salary deptname 1000 a 3000 a 2000 b 3000 b 4000 c 5000 c kindly send the query to thilakvinoth13@gmail.com
What are different types of statements that are supported by sql?
What is save transaction and save point?
what is unique and xaml nonclustered index
In the below query i have performed the commit transaction statement but still the values after the save are not saved. Can you please let me know why are the statements after save are rolled back even after commiting the data. help me with the understanding declare @trans2 varchar(10)='transaction2' begin transaction @trans2 insert into emp values(100,'xy',600); save transaction @trans2 insert into emp values(200,'pq',700); insert into emp values(300,'pq',800); commit transaction @trans2 rollback tran @trans2
What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?
How to send email from database?
What are the benefits of filtered indexes?
How can I create a plain-text flat file from SQL Server as input to another application?
Describe triggers features and limitations?
What is purpose of normalization?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)