skip to Main Content

How to get non repeated rows in postgresql

I have query like select billing_number, created, amount_total_sum, days, country, status, check_in_date, concat(elements->> 'isPossible', elements-> 'UTCDateFrom' ->> 'date', ' - ', elements-> 'UTCDateTo' ->> 'date' ) from (select o.billing_number, o.created, o.amount_total_sum, t.check_in_date, t.check_out_date - t.check_in_date as days, t.hotel_country as country,…

VIEW QUESTION

PostgreSQL Check Right before Transaction closes

i have the following tables: tenants: tenantId (UUID) invoiceAddress (TEXT) packages: packageId needsInvoice tenants_and_packages: tenantsAndPackagesId tenantId packageId This is a M2N-Mapping between Tenants and Packages. What is the problem? I want to achieve the following "Check"-Logic. I want to make…

VIEW QUESTION
Back To Top
Search