25 May 2011 by King Boy
Suppose I have a table (named MyIncome) with 3 columns, the first is Year (2008, 2008, 2009), the second is Month (1, 2, 1), the third is Income ($1000, $1500, $2000)Now I want to know how much the Income are for each year in the Year column. I used the following T-SQL statement:SELECT Year,...