[SQL] Setting boolean column based on cumulative integer value

2006-12-01 Thread Markus Juenemann
Hi (again!) [stupid email program sent my message before I finished it!!!] I've got a bit of a tricky (for me!) problem. The example below is completely ficticious but describes my real problem in a way which might be easier to understand. Imagine the table contains a list of passenger wanting

[SQL] Set binary column dependent on cumulative value of integer column

2006-12-01 Thread Markus Juenemann
Hi I've got a bit of a tricky (or me!) problem. The example below is completely ficticious but describes my real problem in a way which might be easier to understand. Imagine your table contains CREATE TABLE passenger_queue ( id serial NOT NULL, name character varying(40) NOT NULL,