Assume that there is a table for smarty data classification, as shown below:
Id | dt | title |
1 | 2010/09/01 | 111 |
2 | 2010/10/01 | 222 |
3 | 2011/09/01 | 333 |
4 | 444 |
5 | 555 |
6 | 2013/09/01 | 666 |
7 | 2014/08/01 | 777 |
8 | 888 |
9 | 999 |
... |
Is there a way to classify data by time without adding fields or associating other tables?
2010: 111
222
2015: 888
999
In this way. Solution
Reply to discussion (solution)
2010:111
2010:222
Then, what should I do? You should not be able to return a row as you said. The data is returned to find a row in the table. how do you calculate a row like that.
2010:111
2010:222
Then, what should I do? You should not be able to return a row as you said. The data is returned to find a row in the table. how do you calculate a row like that.
2010: 111
222
2015: 888
999
The result is displayed on the page. In fact, I think it is not feasible.