79601101

Date: 2025-04-30 21:14:44
Score: 1.5
Natty:
Report link

you can make use of list tag to have multiple rows:

  -- Use := for assignment in LET
        LET textMessage varchar := (
            SELECT LISTAGG('Table: ' || table_name || ' | Duplicates: ' || value, '\n')
            FROM SNOWFLAKE.LOCAL.DATA_QUALITY_MONITORING_RESULTS
            WHERE METRIC_NAME = 'CHECK_DUPLICATE_ID_FLAG'
              AND MEASUREMENT_TIME > DATEADD('DAY', -1, CURRENT_TIMESTAMP())
              AND VALUE > 0
        );

output is as follows:

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bharath Reddy Maram