I have a query as such
SELECT "deviceId", "transactionStatus"
FROM scp_service_transaction.transactions_v2
WHERE "tenantId" = 'aptos-denim'
AND TRY_CAST("deviceId" AS BIGINT) >= 100
AND TRY_CAST("deviceId" AS BIGINT) <= 150
ORDER BY "endDateTime" desc LIMIT 20 OFFSET 0;
My data set looks like this
[
{deviceId: 123, transactionStatus: object },
{deviceId: 1015, transactionStatus: object }
]
My resulting query returns back deviceId with values of 123
and 1015
while I am expecting only 123
to be returned. Why is my query giving me both 123 and 1015 back when I specified the range that I want my deviceId to be in?