Hello, I have a table which is:
And dummy records for you to easily test:
OK !
I need to find out the average between row.entereds. In this example,
150-100 = 50
200-150 = 50
250-200 = 50
350-250 = 100
(50+50+50+100)/4 = 62.5
What a simple query do I need to find that 62.5 value?
Thanks in advance.
Code:
DROP TABLE IF EXISTS dummy; CREATE TABLE dummy ( id int(11) not null auto_increment, entered int(11) not null default 0, primary key(id) );
Code:
INSERT INTO dummy (entered) VALUES (100), (150), (200), (250), (350);
I need to find out the average between row.entereds. In this example,
150-100 = 50
200-150 = 50
250-200 = 50
350-250 = 100
(50+50+50+100)/4 = 62.5
What a simple query do I need to find that 62.5 value?
Thanks in advance.
Comment