SQL Access
Last updated
Was this helpful?
Was this helpful?
SELECT
COUNT(*),
status,
invoice_type
FROM dashboard
GROUP BY
status,
invoice_type
clickhouse-client --host <hostname_or_ip> --port <port> --user <username> --password <your_password> --database <database_name>
SELECT toStartOfWeek(created_on) as week_start, sum(toFloat64OrZero(field_value)) as total_sum
FROM document_extracted_data
WHERE field_name = 'total_amount'
GROUP BY week_start