Answer the question
In order to leave comments, you need to log in
How to select maximum date in ActiveRecord?
YII2. There are a bunch of related tables, the question is what is the table with the product and the prices, you need to select products with a price with a fresh date in ActiveRecord
Table 1 product1
product2
table 2
date1
| product1 | Price
date2| product1 | Price
Date|Item2| Price
table 3 need this
date2|product1|price
date|product2|price
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question