여기에 오류 또는레일 4 개 포스트 그레스 쿼리 오류
first_of_month = Date.current.beginning_of_month
last_of_month = Date.current.end_of_month
today = Date.current
query = quotes.where('close_date BETWEEN ? AND ? AND status_id = 8 WHERE quote_exp < ? ', first_of_month, last_of_month, today)
query.sum(:total)
왜'where()'함수 내에'WHERE' 절이 있습니까? – Nicarus