Re: [GENERAL] function on trigger

2011-09-01 Thread Marcos Hercules Santos
On Aug 31, 7:39 pm, Marcos Hercules Santos wrote: > hi guys > > I'm newbie in Psql and I'm trying to build one function  in order to > count the products for each supplier. So i'm gonna put it quite simply > though this example > > Please, consider a table called books with the following fields >

Re: [GENERAL] function on trigger

2011-08-31 Thread Sim Zacks
On 09/01/2011 01:39 AM, Marcos Hercules Santos wrote: hi guys I'm newbie in Psql and I'm trying to build one function in order to count the products for each supplier. So i'm gonna put it quite simply though this example Please, consider a table called books with the foll

Re: [GENERAL] function on trigger

2011-08-31 Thread John R Pierce
On 08/31/11 3:39 PM, Marcos Hercules Santos wrote: I'm newbie in Psql and I'm trying to build one function in order to count the products for each supplier. So i'm gonna put it quite simply though this example Please, consider a table called books with the following fields bookid, title, pric

Re: [GENERAL] function on trigger

2011-08-31 Thread David Johnston
On Aug 31, 2011, at 18:39, Marcos Hercules Santos wrote: > hi guys > > I'm newbie in Psql and I'm trying to build one function in order to > count the products for each supplier. So i'm gonna put it quite simply > though this example > > > Please, consider a table called books with the follow

[GENERAL] function on trigger

2011-08-31 Thread Marcos Hercules Santos
hi guys I'm newbie in Psql and I'm trying to build one function in order to count the products for each supplier. So i'm gonna put it quite simply though this example Please, consider a table called books with the following fields bookid, title, price, idPublisher and one another table call