SQL Problem

From: "Imtiaz(dot) S(dot) M" <imtiaz_sm(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: SQL Problem
Date: 1999-10-28 10:47:03
Message-ID: 381829A7.67949B14@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have two tables which have exactly the same structure. Both of them
have one datetime column along with three other columns. But the
datetime column value in the second table is NULL for all the rows. Now
I want select the least date(date with the least value in the datetime
column) from the first table and update all the rows in the second table
with this least date value from the first table. I do not want to use
any compiler or host variables. I should be able to do this only using
SQL statements. Cn somebody please help me? Thanks in advance.

regards
Imtiaz

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 1999-10-28 10:58:29 Re: [SQL] SQL Problem
Previous Message Haris Susanto 1999-10-28 09:46:02 Re: [SQL] Date comparisons