Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

convert view to function

$
0
0

Hi,

I have a view that are used to structure data and I have several reports using this view. One report could for instance use following query commands:
Select case..., sum(...) from view join ... Group by ..., ... Order by...

Now I need to do some more stuff in the view that I think is not possible, so I think I will rewrite this view as a function instead.
Is this a good idea? Is it possible to write for instance:
Select case..., sum(...) from function() join ... Group by ..., ... Order by...
How is performance for function vs view?

Thanks /Magnus


Magnus Burk


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>