perireddy.arikatla (10/10/2013)
Hai Every One. Can Any body help me Please.
I Want to Write a Query On the Result Set Of Another Query.
How to Write
Can Any body help me Please.
There are a lot of ways to do this. Koen's code demonstrates a "Derived Table". There are other methods, as well.
CTE
Derived Tables (Sub-queries)
Correlated Sub-Queries
Views
Inline Table Valued Functions
APPLY (CROSS or OUTER)
Temp Tables
INSERT/EXEC
OpenRowSet
OpenDataSource
--Jeff Moden
Change is inevitable... Change for the better is not.