Code: Select all
SELECT
tbl_pupils.ID,
CONCAT(tbl_pupils.FirstName, " ", tbl_pupils.LastName) AS FullName,
tbl_subjects.title,
tbl_grades.ft,
tbl_grades.fp,
tbl_grades.ft + tbl_grades.fp AS total
FROM
tbl_grades,
tbl_pupils,
tbl_subjects
WHERE
tbl_grades.PID = tbl_pupils.ID AND
tbl_grades.BID = tbl_subjects.ID
How to update (ft & fp) in (Grades) table using this SQL with DBGrid.