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 a.ID, a.Name, Sum(b.value1+(1.5*b.value2)-b.value3) AS TotalFromB
FROM tbl1 AS a INNER JOIN tbl2 AS b ON a.ID=b.ID
GROUP BY a.ID, a.Name;
UPDATE tbl1 INNER JOIN SubQuery ON tbl.ID = SubQuery.ID
SET tbl.Total = SubQuery.TotalFromB;
any idea?
UPDATE tbl1 AS a SET a.total = (SELECT Sum(b.value1+(1.5*b.value2)-b.value3)
FROM tbl2 AS b
WHERE b.ID=a.ID
GROUP BY a.ID);
table1.total = value1+value*1.5-value3
UPDATE table1 INNER JOIN tble2 ON table1.ID=table2.ID
SET table1.total = value1+value2*1.5-value3
yes, don't store calculated fields in your tables, breaks normalization rules.any idea?
Read more at 'The Fundamentals of Relational Database Design'
Leslie
By the way: How do you activate the inset box as in your recent response Quote: any ideas!
How to give access to the Sum from value in second table to people having access only on first table then?