I need to do this seemingly simple thing in mySQL:
SELECT SUM(wucount), SUM(genecount) FROM genomestats WHERE curDate IN
('09-09-2001 9:30:00', '09-09-2001 12:30:00');
However, the SUM() returns the SUM of both dates. However, I could do
SELECT SUM(wucount), SUM(genecount) from genomestats WHERE curDate =
'09-09-2001 9:30:00' UNION SELECT SUM(wucount), SUM(genecount) FROM
genomestats where curDate = '09-09-2001 12:30:00';
Does anyone know a good way around this???
-------------------------
Glendon Solsberry
Internet Programmer
Tricon Global Restaurants
tel. (502) 874-6736
fax (502) 874-8818
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php