I am trying to simply read a value from a table and based on the return value call for additional queries and return the combined results.
let's take a simple example:
table Users has id, name and emailid
and let's say if emailid is not null we want to call the email table and return a results like { id:[id], name:[name], email:[email]}.