Bob Sovers
11/25/2024, 4:42 PMjen
11/26/2024, 7:57 PMWatz
11/27/2024, 8:02 PMBob Sovers
12/02/2024, 6:08 PMWatz
12/02/2024, 6:09 PMLISTAGG(TL.uniqueKey, ',' ON OVERFLOW TRUNCATE '...' WITHOUT COUNT) WITHIN GROUP(ORDER BY TL.uniqueKey)
Shai Coleman
12/03/2024, 10:27 PMWITH t2 AS (
SELECT transaction.id AS transaction_id, transactionline.uniquekey
FROM transaction
INNER JOIN transactionline ON (transactionline.transaction = transaction.id)
FETCH FIRST 1000 ROWS ONLY
)
SELECT t2.transaction_id,
LISTAGG(t2.uniquekey, ', ' ON OVERFLOW TRUNCATE '...' WITHOUT COUNT)
WITHIN GROUP (ORDER BY t2.uniquekey) AS transactionline_uniquekeys
FROM t2
GROUP BY t2.transaction_id
ORDER BY t2.transaction_id