Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT
Table1.dblValue,
(SELECT Avg(dblValue)from table1) AS CL,
(SELECT Avg(dblValue)- 3 * stdev(dblValue) from table1) AS LCL,
(SELECT Avg(dblValue)+ 3 * stdev(dblValue) from table1) AS UCL
FROM
Table1;
dblValue CL LCL UCL
5.5 4.94 -5.32 15.20
2 4.94 -5.32 15.20
7 4.94 -5.32 15.20
8.8 4.94 -5.32 15.20
2.2 4.94 -5.32 15.20
0.7 4.94 -5.32 15.20
3.3 4.94 -5.32 15.20
10 4.94 -5.32 15.20
Update XCL column with XBARCL entry with the highest ID number.
SELECT
tblControlLimits.ID,
tblControlLimits.lotNumber,
tblControlLimits.X1,
.....
Other fields
(Select top 1 XBARCL from tblControlLimits order by ID DESC) AS LastCL
FROM tblControlLimits;
SELECT TOP 1
tblControlLimits.XBARCL
FROM
tblControlLimits
ORDER BY
tblControlLimits.ID DESC;
UPDATE
tblControlLimits,
qryLastCL
SET
tblControlLimits.[CL(X)] = [qryLastCL].[xbarcl];