For a table with around 100 columns, how can I quickly calculate the sum of all columns for each row in DolphinDB? Looks like all DolphinDB functions for a table apply to columns, not rows.
Asked
Active
Viewed 66 times
2 Answers
1
DolphinDB's aggregate functions indeed apply to columns. Unfortunately, you'll have to write out this summation yourself (or write some code that generates it):
SELECT col1 + col2 + col3 + /* etc... */ AS sum_of_cols
FROM mytable

Mureinik
- 297,002
- 52
- 306
- 350