Solved

Compile Maria database very 30 days interval

Posted on 2015-01-29
1
124 Views
Last Modified: 2015-02-13
Hi , Good day,

I am getting raw data into my database (table) every second and filling up my database - no issue on that part. I want to compile my data every 30 days interval automatically example date from 15/jan ~ 14/feb and so on. Is that possible in Maria db
0
Comment
Question by:TITO2009
1 Comment
 
LVL 41

Accepted Solution

by:
pcelba earned 500 total points
ID: 40578380
Yes, this is possible. You may use ADDDATE or DATE_ADD function to calculate the date + 30 days.

More info: https://mariadb.com/kb/en/mariadb/date-and-time-functions/

To execute the compilation every 30 days just CREATE EVENT: https://mariadb.com/kb/en/mariadb/events/

More info: https://mariadb.com/kb/en/mariadb/create-event/

Your compilation will be more complex than one simple statement so I would recommend to create and call Stored Procedure.

More info: https://mariadb.com/kb/en/mariadb/stored-procedures/
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now