Utsav Jain
06/10/2025, 7:21 AMSELECT recordId,
identityElement,
transactionDate
FROM table1
WHERE trailId = 'xyz'
AND partnerId = 'zyr'
AND reconcilableAttribute = 'kk'
AND transactionDate >= '2025-06-03 00:00:00'
AND transactionDate < '2025-06-03 01:00:00'
order by transactionDate asc;
results
"rows": [
[
"record1",
"tid1",
"2025-06-03 00:00:00.0"
]
Query2
SELECT
recordId,
updatedAt,
identityElement,
transactionDate,
ROW_NUMBER() OVER (PARTITION BY recordId ORDER BY updatedAt ASC) AS rn
FROM
orbis_baggage
WHERE
trailId = 'xyz'
AND partnerId = 'zyr'
AND reconcilableAttribute = 'TOTAL_AMOUNT'
AND transactionDate >= '2025-06-03 00:00:00'
AND transactionDate < '2025-06-03 01:00:00'
order by transactionDate asc
result :
[
"record2",
"tide2",
"2025-06-03 05:30:00.0",
1
],