problem with sql

From: Adaś <adamn(at)qwe(dot)pl>
To: pgsql-sql(at)postgresql(dot)org
Subject: problem with sql
Date: 2003-10-19 16:56:10
Message-ID: Kmzkb.25189$bU3.325187@news.chello.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello to everyone,

In my own database, I linked customers table with orders table using
one-to-many relation. I need to check status of last order for each
customer and then set customer's status. I made a query using LAST and
GROUP BY to select last order for each customer and I wanted to use it
in UPDATE query, but it seems to be impossible. Is here anybody who
knows how to solve this problem? (I work with MS Access).

Adam

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mathieu Arnold 2003-10-19 21:00:03 Re: date_trunc for 5 minutes intervals
Previous Message email lists 2003-10-19 13:38:05 date_trunc for 5 minutes intervals