Received: from mailout04.sul.t-online.de (mailout04.sul.t-online.com [194.25.134.18]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f58GUvE66227 for ; Fri, 8 Jun 2001 12:30:57 -0400 (EDT) (envelope-from peter_e@gmx.net) Received: from fwd00.sul.t-online.de by mailout04.sul.t-online.de with smtp id 158P9k-00008M-00; Fri, 08 Jun 2001 18:30:40 +0200 Received: from peter.localdomain (520083510237-0001@[217.80.144.3]) by fmrl00.sul.t-online.com with esmtp id 158P9c-23lxyKC; Fri, 8 Jun 2001 18:30:32 +0200 Date: Fri, 8 Jun 2001 18:31:57 +0200 (CEST) From: Peter Eisentraut To: Luis Sousa cc: pgsql sql Mailing List Subject: Re: Hidden Select In-Reply-To: <3B2092D1.C272FB63@ualg.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sender: 520083510237-0001@t-dialin.net X-Archive-Number: 200106/127 X-Sequence-Number: 3348 Luis Sousa writes: > I have a query that joins several table with some restrictions. > I want to take out those restrictions from the query and create a view > that does not show the fields that are used to restrict the data, but in > some way, i can restrict that data when i call the view. Do you mean like this? create table A (id int, content text); create table B (id int, stuff numeric); create view C as select A.content, B.stuff from A, B where A.id = B.id; -- Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter