Nada Ahmed
09/11/2024, 11:33 AMCeligo AI
09/11/2024, 11:33 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you're having trouble with the
GROUP_CONCAT({item})END||LISTAGGCONCATwm_concatsql
SELECT 
    transaction.customer,
    SUM(transactionlines.amount),
    (SELECT GROUP_CONCAT(department) FROM transactionlines WHERE transactionlines.transaction = transaction.id) as departments
FROM
    transaction, 
    transactionlines
WHERE
    transactionlines.transaction = transaction.id
GROUP BY
    transaction.customerCeligo AI
09/11/2024, 11:34 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821594357
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816742063
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81625247
Celigo AI
09/11/2024, 11:34 AM