Try this ...
Try this ...
/****************************/
create table abc (age integer);
insert into abc (29);
insert into abc (25);
insert into abc (21);
insert into abc (18);
SELECT
COUNT(age) AS total_count
,AVG(((age)(FLOAT))) AS avg_age
,SQRT(ABS((SUM(Age**2) / total_count) - AVG(Age)**2)) AS std_dev
FROM
(SELECT age
FROM abc ) A ;
/**********************************************/
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.