Google BigQuery: retrieve last version of each row
问题 I have a Google BigQuery Table which contains all the versions of resources. Every time a resource is created/updated/deleted a new row is added incrementing the version number (this number will be the timestamp of when the row is added) +-------+------------+--------+-------+-------------+ | ID | ResourceID | Action | Count | Timestamp | +-------+------------+--------+-------+-------------+ | ABC_1 | ABC | CREATE | 10 | {timestamp} | | ABC_2 | ABC | UPDATE | 8 | {timestamp} | | ABC_3 | ABC |