I have a table with the following columns below. THe table contains results from different assays. I would like to write a query calculation to determin the amount of total Sucrose in each sample(A or B). To do this i need to subtract the glucose value that is related to the same sample (A or B).
(i.e. Sucrose+Glucose Sample A - Glucose Sample A). The way i have the table i can not figure how to build the query since both values are in the same column. I tried sub queries and the IIF function but can not figure out how subtract the values of each assay.
Thanks in advace for the help,
Tmreic
SampleID | AssayType | Nanomoles
A | Sucrose+Glucose | 40
A | Glucose | 10
B | Sucrose+Glucose | 30
B | Glucose | 10