Created
June 15, 2017 02:38
-
-
Save silasjmatson/5e11b25aae3edb82c3c622116af6880f to your computer and use it in GitHub Desktop.
Custom Select
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query.select(" | |
AVG(sale.price) as average_price, | |
MAX(sale.price) as max_price, | |
MIN(sale.price) as min_price, | |
ROUND(AVG(EXTRACT(EPOCH FROM sale.completed_at) - EXTRACT(EPOCH FROM sale.created_at))) as average_sale_time | |
") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment