can someone help me to write a query that will sum the information across the row and down the column (sum) in ms access table
a b sum
1 10 11
2 20 22
I tried the following
select a,b, sum as (a+b) from table1
the error i get :
The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.

the correct statement is:

SELECT a, b, sum(a + b) from table1

sum is an existing method that returns the sum of the passed items

the statement used to produce required output is:-

SELECT a,b,a+b as sum from table1

to get the result across the column i.e. sum of all columns:-

select sum(a),sum(b),sum(a+b) from table1

hope it might be helpful.....

it works fine.thank you,i really appriciate your help