ql.fmt 347 B

1234567891011
  1. select
  2. min(h.price) as minPrice,
  3. max(h.price) as maxPrice,
  4. avg(h.price) as avgPrice,
  5. date_format(h.priceDate, '%Y-%m') as dt
  6. from db_price_community_history h
  7. where
  8. h.priceDate between :startDate and :endDate
  9. AND h.houses=:houses
  10. group by date_format(h.priceDate, '%Y-%m')
  11. order by dt