How to query and display data within the validity period of n business days

Source: Internet
Author: User

Function Analysis: to display data within n working days, consider:

1. you can add a validity period field for each piece of data. Only the data before the validity period is displayed during query. For example, if the validity period is seven days, the Data creation time is, the validity period of the seven working days is 2014-07-30. Display Data with a validity period before.

2. Consider holidays. For example, if the data creation time is, the validity period of the seven working days is 2014-05-12. If you do not have a holiday on October 1, 2, or 3, the seven valid working days are Sunday, October 1, October 1, October 1, October 2, and October 3.

3. There may be holidays from Monday to Friday, and remedial work on Saturday. The holiday information for each year is different, so it is necessary to use a table to maintain the annual holiday information.

How to implement query and display data within the validity period of n business days

Related Article

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.