Ask Your Question
4

What is the method to retrieve the SUM() of a particular value from a different column in bigquery?

asked 2023-06-19 03:16:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-19 03:37:02 +0000

lakamha gravatar image

To retrieve the SUM() of a particular value from a different column in BigQuery, you can use the following SQL query:

SELECT SUM(column_name)
FROM table_name
WHERE condition;

Replace "columnname" with the name of the column you want to sum and "tablename" with the name of the table containing the column. You can also add a "WHERE" clause to specify a condition for the rows you want to sum.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-19 03:16:00 +0000

Seen: 7 times

Last updated: Jun 19 '23