- SELECT AVG(total,
- -- чтобы сравнить необходимо здесь привести поле invoice_date к timestamp???
- CAST(invoice_date AS timestamp)
- FROM invoice
- WHERE DATE_TRUNC('week', CAST(invoice_date AS timestamp));
Re: Re: Untitled
From Subtle Pudu, 10 Months ago, written in Plain Text, viewed 276 times.
This paste is a reply to Re: Untitled from Insensitive Parrot
- view diff
URL http://codebin.org/view/5c327fa5
Embed
Download Paste or View Raw
— Expand Paste to full width of browser