Skip to content

Tag: view

VIEW – INDEX SQL SERVEr

Does anyone know another way to run the query below more efficiently? I’m using SQL Server 2014. I’m facing a problem if i create index on table or on view . On table 2 (TB_FATURA_ITEM_TRANSACAO_HST) , has stored 50 million rows . I was wondering using Schemabiding on View , but I was looking in s…

SQL Views “WITH CASCADE CHECK OPTION” Behaivor?

I can’t find any reference, or documentation on this. Does the condition clause read x = 1 AND y = 1 in case of UPDATE/INSERT on view2? Answer OK, so maybe have a look at WITH CASCADED CHECK OPTION and it’s example and Defining Views It would seem that the WITH CASCADE option does enforce all view…

How to create a summary view from multiple views?

Given I have the following view where N=1..100 Currently we have summary views which insert to a table like The table is then used to create an overall summary like Is there a way to create summary_view_all_plants without having to create each individual summary_view_N? I would like to be able to iterate thou…

What are views good for?

I’m just trying to get a general idea of what views are used for in RDBMSes. That is to say, I know what a view is and how to make one. I also know what I’ve used them for in the past. But I want to make sure I have a thorough understanding of what a view is useful for