1234567891011121314151617181920 |
- SELECT * FROM transactions t
- LEFT JOIN tags_map ON (transaction_id = t.id)
- LEFT JOIN tags tg ON (tag_id = tg.id)
- WHERE transaction_id = 2247;
- SELECT *, sum(price) OVER () FROM public.transactions
- WHERE ts::date = ('2024-04-15 12:00'::timestamp with time zone AT TIME ZONE 'UTC')::date and store_id = 8;
|