怎么取出一个表中字段值相同的记录进行统计

如何取出一个表中字段值相同的记录进行统计
表如下:
--------------------------------------------
Account         stockCode         stockName         stockCount
sh00001         601600                 中国铝业         500
sh00002         601600                 中国铝业         800
sh00001         601988                 中国银行         1000
sh00002         601988                 中国银行         1200
sh00001         600028                 中国石化         700
……
--------------------------------------------
这个表中,按照stockCode(股票代码)来统计,同一支股票可能出现多次,现在要分别统计每支股票在所有用户手中总的持股数SUM(stockCount)。我写的语句如下:
------------------------
select   stockCode,stockName,sum(stockCount)   AS   stockCount   from   Table   group   by   stockCode
------------------------
运行结果,总是提示我驱动不支持所需的属性什么的。

请各位大侠帮忙看看,我到底错在哪里了`~~~~谢谢

------解决方案--------------------
select stockCode,stockName,sum(stockCount) AS stockCount from [Table] group by stockCode, stockName
------解决方案--------------------
select stockCode,stockName,sum(stockCount) AS stockCount from Table group by stockCode,stockName
------解决方案--------------------
select stockCode,stockName,sum(stockCount) AS stockCount from Table group by stockCode,stockName