Skip to content
Advertisement

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 some articles that is not

Pass In “WHERE” parameters to PostgreSQL View?

I have a rather complicated query on my PostgreSQL database spanning 4 tables via a series of nested subqueries. However, despite the slightly tricky looking appearance and setup, ultimately it will return two columns (from the same table, if that helps the situation) based on that matching of two external parameters (two strings need to match with fields in different

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 criteria.

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 though a list of reports and dynamically generate

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

Advertisement