How to get a value from a database based on a value from the same row, but different column - pls help!!!!!!!!!!

@avanthi-senthilk I see in your backend code that you are incorrectly using both await and .then() for your call to wixData.query(“Teachers”) . To handle a returned Promise, you should use either await or .then() - not both . You can just delete the await . You want this:

return wixData.query("Teachers")