Re: [SQL] sum but not grouped by?

2005-08-14 Thread Luca Rasconi Master
let ff your table... try this: select     a.id,     a.date,     a.hours,     (select sum(b.hours)         from ff as b         where a.id = b.id         group by b.id     ) as a     from ff as a; bye, Luca Henry Ortega ha scritto: I have the ff data: id | date |

[SQL] info

2005-06-20 Thread Luca Rasconi
I need to know if somebody read this mail.   bye

[SQL] FW: help with serial

2005-06-20 Thread Luca Rasconi
Hi all, There’s a behaviour I can’t understand There is table TABLE_A with 3 columns (uid, id, session) where uid is the pk and the data type is serial. There is table TABLE_B with 3 columns (uid, ts_col, col) where uid is the pk.   On table TABLE_A I have a rule on insert like thi