Can someone tell me what is wrong with my sql statement below? I keep getting a syntax error. Thanks.
SELECT * FROM (SELECT vendorname, SUM(cogs)AS sumcogs FROM spec_registrar WHERE orderdate >="2006/01/01" GROUP BY vendorname )as totals WHERE sumcogs >="10000.00
SELECT * FROM (SELECT vendorname, SUM(cogs)AS sumcogs FROM spec_registrar WHERE orderdate >="2006/01/01" GROUP BY vendorname )as totals WHERE sumcogs >="10000.00