> UPDATE entry_stats > SET entry_maxprice=MAX(item_price) > FROM item > WHERE item.item_entry_id=NEW.item_entry_id > AND item.item_live = 't'; Try COALESCE(MAX(item_price),0) Christopher J.D. Currie Computer Technician Dalhousie: DalTech - CTE _____________________________________________ Lord, deliver me from the man who never makes a mistake, and also from the man who makes the same mistake twice. -William James Mayo
Re: [SQL] MAX() of 0 records.
DalTech - Continuing Technical Education Fri, 07 Jul 2000 07:03:44 -0700
- [SQL] MAX() of 0 records. Paul McGarry
- Re: [SQL] MAX() of 0 records... DalTech - Continuing Technical Education
- Re: [SQL] MAX() of 0 records... Tom Lane
- Re: [SQL] MAX() of 0 records... benoit
- Re: [SQL] MAX() of 0 rec... Paul McGarry