I have a dataset of 3 columns; date, sales and new_sales.
What i am trying to do in bigquery is for a given date, grab the first sales value and populate this into a new column called new_sales whilst leaving the rest of the days for that given date a value of 0.
How would i go about creating this query in bigquery?

You can use
row_number()- but you nede a column that defines the ordering of rows having the samedate- I assumedid: