skip to Main Content

All joined subquery results return null – Postgresql

I am trying to get all customers with their latest payment transaction, including customers without any transaction: SELECT c.customer_id, c.phone_number, c.email , p.transaction_no, p.amount, p.transaciton_datetime FROM tbl_customers c LEFT JOIN ( SELECT customer_id, transaction_no, amount, transaciton_datetime FROM tbl_payment_transactions ORDER BY…

VIEW QUESTION

How can I get the max and the min value for a specific timeframe grouped by day from a timeseries data – Postgresql

I am using DuckDB and want to process some time-series data that has the following format: ┌─────────────────────┬─────────┬─────────┬─────────┬─────────┬────────┬────────────┐ │ Timestamps │ Open │ High │ Low │ Close │ Volume │ CustomDate │ │ timestamp │ double │ double │ double…

VIEW QUESTION
Back To Top
Search