I\'ve got a question regarding a SQL-select-query: The table contains several columns, one of which is an Integer-column called \"size\" - the task I\'m trying to perform is
It's not as simple as this, is it?
SELECT SUM(SIZE)
FROM Table
WHERE bla = '5'
Are you looking for:
SELECT SUM(Size) FROM MyTable WHERE bal = '5'
You can also (in MSSQL)
SELECT Size, COl1, COl2 FROM MyTable WHERE bla ='5' COMPUTE SUM(Size)
SELECT SUM(size) AS overallSize FROM table WHERE bla = 5;