Create a Mysql query

I do have a database with a table as below:

CREATE TABLE `error_monitoring` (

`id` int(11) NOT NULL,

`error_monitoring_page` varchar(256) NOT NULL,

`error_code` varchar(64) NOT NULL,

`monitoring_country` varchar(64) DEFAULT NULL,

`platform` varchar(64) NOT NULL,

`total` int(64) NOT NULL,

`visits` int(64) NOT NULL,

`unique_visitors` int(64) NOT NULL,

`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',


In this table is stared data that comes from a .csv file. The .csv fila has only 5 columns:

- date

- error_monitoring_page

- total

- visits

- unique visitors

The rest of the information like country and platform is taken from the and error_code from the field "error_monitoring_page" in which this information is contained and then added into the corresponding field.

In the .csv file the information comes as below example:

2017/03/13 03:00:00,us:es:website:track-transfer:moneytransfer-tab|C1620,16,3,3

2017/03/13 03:00:00,us:es:website:price-estimator:continue|PS9999,4,3,3

2017/03/13 03:00:00,us:es:website:send-money:register|C6003,0,0,0

2017/03/13 03:00:00,us:es:website:send-money:sendmoneylogin|C1131,0,0,0

2017/03/13 03:00:00,us:es:website:send-money:start|PS9999,3,1,1

2017/03/13 03:00:00,us:es:website:price-estimator:continue|C1053,0,0,0

2017/03/13 03:00:00,us:es:website:send-money:start|C5000,8,4,4

This field "us:es:website:track-transfer:moneytransfer-tab|C1620" is containing :

error code : last 5 characters os the string.

monitoring_country: first 2 characters of the string.

and the platform: website

The .csv file is received every hours some we have in the database data for every hour of the day for each error_monitoring_page.

I need an MySql query that extracts and calculate the error codes that is exceeding for the total count of the day the Upper Control Limit.

Said that:

UCL = average+(2*standard deviation)

For example:

if total count of the current day for the error code C1620 is higher that the UCL the query should extract all the information of this error code:

- Error code

- average

- standard deviation

- total of the day

The average and the standard deviation should be calculated based on the total by day for the last 30 days.

Taidot: MySQL, PHP, SQL

Näytä lisää: how to create table in mysql command line, how to create table in mysql workbench, mysql create table foreign key, mysql create table primary key, mysql create table auto_increment, how to select database in mysql, create table mysql example, insert into table mysql, error 1317 mysql query execution interrupted dumping table, mysql query database table remote computer, mysql query remote database table, php mysql query format table, mysql query php table css, create mysql database form, create access database table using, create mysql email database, create database table xml schema, phpfilenavigator create mysql database, php mysql query table, create mysql table form data

Tietoa työnantajasta:
( 12 arvostelua ) Grecia, Costa Rica

Projektin tunnus: #15582731

Myönnetty käyttäjälle:


Been working for several years on MySQL queries and having a great knowledge of MySQL queries. Relevant Skills and Experience MySQL, SQL, PHP Proposed Milestones $22 USD - Understanding and writing optimized query

$22 USD 1 päivässä
(0 Arvostelua)

12 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

$50 USD 1 päivässä
(97 arvostelua)

I can do it. Relevant Skills and Experience sql Proposed Milestones $25 USD - m

$25 USD 1 päivässä
(33 arvostelua)
$50 USD 1 päivässä
(33 arvostelua)

Hi arayafr. do you need an mysql query that extracts and calculate the error codes that is exceeding for the total count of the day the upper control limit ?.I sure i can help you We have experience in t Lisää

$40 USD 5 päivässä
(30 arvostelua)

Hello Sir, hope you are fine, I ready your job proposal closly and gather all the requirement which you are written proplerly I am interested in your work "to create mysql query". Relevant Skills and Experience I h Lisää

$50 USD 2 päivässä
(40 arvostelua)

A proposal has not yet been provided

$35 USD 2 päivässä
(3 arvostelua)

I will assure you quality work

$30 USD 1 päivässä
(3 arvostelua)
$25 USD 1 päivässä
(1 arvostelu)

A proposal has not yet been provided

$35 USD 2 päivässä
(0 arvostelua)

A proposal has not yet been provided

$30 USD 1 päivässä
(0 arvostelua)

Hello, i have completed project in PHP, LARAVEL, CodeIgniter, Symfony and MYSQL. I shall complete project in short time. Regards, Nitu Patel Relevant Skills and Experience I have 2.8 years experience in Lisää

$55 USD 2 päivässä
(0 arvostelua)