Guest User

Untitled

a guest
Jan 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # sqlite has no function like std or var. This is a method of how it can be calculated
  2. # assume we want to get the variance of the column fieldRA from the table Summary in a sqlite DB. In this case the following produces the variance
  3. SELECT avg((SUMMARY.fieldRA - sub.a)*(SUMMARY.fieldRA - sub.a)) FROM Summary, (SELECT avg(fieldRA) as a FROM SUMMARY) AS sub;
Add Comment
Please, Sign In to add comment