Re: My brain hurts - update field based on value of another table's field

From: missive(at)frontiernet(dot)net (Lee Harr)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: My brain hurts - update field based on value of another table's field
Date: 2001-09-25 00:37:21
Message-ID: 9oojk1$sr0$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 24 Sep 2001 11:22:40 -0700, Pat M <pmeloy(at)removethispart(dot)home(dot)com>:
> Woohoo! I got it. VIEWS! I can pre-do a pile of the work in a view and cut
> down on my scripting complexity a LOT. Instead of duplicating data all the
> time, create a view that includes all the parent record fields that I'd
> usually have to join manually in a script.
>

Sounds good. I use views like this also (to reduce complexity).

I used to always want to "do it all in one query."

That gets out of hand pretty quickly, but if you can encapsulate
different sections of the query in views...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel A. Morgan 2001-09-25 00:37:40 Re: NewYork Bombing: SQL server bomb proof!!
Previous Message Brian C. Doyle 2001-09-25 00:30:55 Re: Function Help