I want to pipe the output of a stream analytics job to table storage. For the rowkey, I want to use an inverted timestamp. In C# I would simply do the following:
var invertedTimestamp = DateTime.MaxValue.Ticks - DateTime.UtcNow.Ticks;
I am attempting to write a ASA job query, but don't know how to get something analogous:
SELECT
CONCAT(deviceId, '_', sessionId) as DeviceSession,
DATEDIFF ( ms , NOW(), MAX_DATE() ) //pseudocode
INTO
tablestorage
FROM
iothub