Re: Query Sum problem

From: Date: Tue, 16 Dec 2003 19:35:34 +0000
Subject: Re: Query Sum problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-32083@lists.php.net to get a copy of this message
From: "Larry Sandwick" <lgs@sarreid.com> > I need to sum the field *COST* in this query where data in *STATUS* is > equal to "HELD" and "OPEN", so I will have 2 totals passed below and do > not know where to begin . SELECT status, SUM(cost) FROM Table WHERE status IN ('HELD','OPEN') GROUP BY status ---John Holmes...

« previous php.db (#32083) next »