Jump to content

Mysql Advise


mpharo

Recommended Posts

Hello,

 

I am witing a new application that generates information daily. Right now I have it setup that the initial information is set for a start date and end date with an active and deactive flag. Basically what I need to do is query for all of the information that is greater than the start date and less than the end date where they are active. But the catch is that there is also a sunday-saturday flag to be set for each day. So each day where Monday is set to active and it is within the start date and end date I need to generate information, the Sunday thru Saturday flags can be changed in the middle of the duration.

 

What I was thinking if doing was havin a daily script that runs that filters out the information for each day and then generates the report based on that information, that way if a monday is now deactive that was previously active I still have a record of all of the previous mondays that were active.

 

In total this will generate about 1000 records per day and much less on the weekends.

 

Is this the correct way to go about this? is there another way? I am open to ideas.

 

Thanks in advance,

Link to comment
Share on other sites

Hello,

 

I am witing a new application that generates information daily. Right now I have it setup that the initial information is set for a start date and end date with an active and deactive flag. Basically what I need to do is query for all of the information that is greater than the start date and less than the end date where they are active. But the catch is that there is also a sunday-saturday flag to be set for each day. So each day where Monday is set to active and it is within the start date and end date I need to generate information, the Sunday thru Saturday flags can be changed in the middle of the duration.

 

What I was thinking if doing was havin a daily script that runs that filters out the information for each day and then generates the report based on that information, that way if a monday is now deactive that was previously active I still have a record of all of the previous mondays that were active.

 

In total this will generate about 1000 records per day and much less on the weekends.

 

Is this the correct way to go about this? is there another way? I am open to ideas.

 

Thanks in advance,

 

Come with a basic structure and we'll help you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.