表格和我想知道我的行隨着時間的總和。例如。這裏是我的表格:在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