Smarty data classification

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.