I have the query :
select A.*, A.DocumentID.DocId, D.Key, D.Value
from `serv.dam.events` A
left join unnest (A.metadata) D
where A.Creationtimestamp > '2018-10-01'
order by Creationtimestamp desc
limit 10000
I want to limit the values per day to 10000. How can i do it?