How can I retrieve data from two different tables of a database?The tables are:CREATE TABLE Elements(Name TEXT, Symbol TEXT, Mass REAL)CREATE TABLE Molecules(Name TEXT, Element TEXT, Quantity INTEGER)
I want, for example, to get the Name of the molecule with its molecular mass, which is the sum of its element masses. For example if I hve:Elements Table: 'Hydrogen', 'H', 1.009Molecules Table: 'Methane', 'Hydrogen', 4
Would get [('Methane', 4.036)]