A
Andreas
Hi all,
I want to create the following query:
1 | 2 | Sum of 1+2
-----------------------------
2 3 5
1
5 0 5
3
I tried this:
SELECT isnull([num_c_1],0) + isnull([num_c_2],0) AS Expr1
FROM tab_Cards_2008;
Unfortunately it doesnt work. Any ideas what my mistake is?
In a next step (or the same) I would like to COUNT eg. all the Sums of
5 (in this case 2 times) how is the best way to do that?
Sorry if this has a very easy answer, but I am new in SQL and have
tried several things to solve this.
Thanks for your help,
Andreas
I want to create the following query:
1 | 2 | Sum of 1+2
-----------------------------
2 3 5
1
5 0 5
3
I tried this:
SELECT isnull([num_c_1],0) + isnull([num_c_2],0) AS Expr1
FROM tab_Cards_2008;
Unfortunately it doesnt work. Any ideas what my mistake is?
In a next step (or the same) I would like to COUNT eg. all the Sums of
5 (in this case 2 times) how is the best way to do that?
Sorry if this has a very easy answer, but I am new in SQL and have
tried several things to solve this.
Thanks for your help,
Andreas