表格和我想知道我的行随着时间的总和。例如。这里是我的表格:在SQL中,如何随时间查找一行的总数?
Date Fruit Sold Mon apple 4 Mon pear 5 Mon orange 2 Tues apple 3 Tues pear 2 Tues orange 1 The table I want back is: Fruit Sold apple 7 pear 7 orange 3
什么是查询,我可以做到这一点?但是,根据我的实际情况,我有数百种水果。那么,如何查询每次指定每种类型的水果?
这看起来像功课。如果是,请用'家庭作业'标记。 – oleschri 2011-05-25 09:24:34