Skip to content
Advertisement

How to add a column of total number of rows in BigQuery

I have a table in BigQuery where I save a DATESTAMP and temperature sensor value. I usually filter the query by dates. My goal is to add a column in this query where it puts the total number of rows.

For example, if I run this query I have this result:

And when I run this query I have this result:

My goal is to program a query and receive this result

How can I do?

Advertisement

Answer

This is one option.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement