From: | Doug McNaught <doug(at)mcnaught(dot)org> |
---|---|
To: | Shane D <shane(dot)dawalt(at)wright(dot)edu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Was: Triggers, Stored Procedures, PHP |
Date: | 2003-11-30 03:28:39 |
Message-ID: | 87brquy1p4.fsf@asmodeus.mcnaught.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Shane D <shane(dot)dawalt(at)wright(dot)edu> writes:
> But what if the films table also had a field for the production
> company. This implies based on the view definition that it too, has
> the field (call it prod_co). Could I use the following query to
> select all Comedy films distributed by the 'Small Company' production
> company?
>
> SELECT * FROM kinds WHERE prod_co = 'Small Company';
Sure, as long as the column is part of the view, you can use it to
constrain the SELECT.
-Doug
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Browne | 2003-11-30 04:01:14 | Using Views |
Previous Message | Christopher Browne | 2003-11-30 03:17:01 | Re: PostgreSQL, MySQL, etc., was Re: PostgreSQL is much |
From | Date | Subject | |
---|---|---|---|
Next Message | Doug McNaught | 2003-11-30 03:37:06 | Re: *sigh* |
Previous Message | Shane D | 2003-11-30 02:48:40 | Re: Was: Triggers, Stored Procedures, PHP |