Article View: bit.databases.mssql-l
Article #2039Re: ? ON VIEW OVERHEAD
From: Jim Panttaja
Date: Wed, 26 Apr 1995 00:00
Date: Wed, 26 Apr 1995 00:00
24 lines
1610 bytes
1610 bytes
Yes - there is extra work! If I have a view joining A,B and C - and I query against the view, only rows which match the original view definition (and whatever further restriction I place in my query) are returned. So it must do the join defined in the VIEW in order to determine whether to show me the 'result': CREATE VIEW x AS SELECT a.q, b.r, c.s FROM a,b,c WHERE a.id = b.id and b.id2 = c.id2 SELECT q FROM x (where column q originally comes from the a) This must give me column q from the original table a - but only for rows of a that have a corresponding row of b - which in turn have a corresponding row in c. So the join to b and c must be done before determining which rows to return. Jim ============================================================================== Jim Panttaja Panttaja Consulting Group, Inc. INTERNET: jim@pcgi.com 103 Plaza St., Healdsburg, CA 95448 uunet: uunet!pcg!jim 707 433-2629 CompuServe: 74513,346 FAX 707 431-0549 ==============================================================================
Technical Details
Message-ID:
<9504260822.AA15168@pcgi.COM>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6611,d19a5c1d94924e68 X-Google-Attributes: gidf6611,public From: Jim Panttaja <pcg!jim@UUNET.UU.NET> Subject: Re: ? ON VIEW OVERHEAD Date: 1995/04/26 Message-ID: <9504260822.AA15168@pcgi.COM> X-Deja-AN: 101647581 sender: Microsoft SQL Server Discussion List comments: Gated by NETNEWS@AUVM.AMERICAN.EDU newsgroups: bit.databases.mssql-l