<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>    Iīm trying to insert a column 
data ( double precision) from table p into another column b with two 
common columns( numerodist and numerosecc):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>update b  set areaB=(select p.areaP from p, b 
where p.numerodist=b.numerodist <BR>and p.numerosecc=b.numerosecc);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but this way i canīt because the result is a lot of 
rows, not a single one. How can i update my p table with the value of just one 
row of the first one? I know this is a sql question but i read the postgres 
reference and donīt know how to solve this.</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Galois</FONT></DIV></BODY></HTML>