You’re amazing! Thank you so much.
Taking this one step further, could it be possible to nest this type of functionality?
from_dataset("Countries", "name", id: from_dataset("Contacts", "country_id", id: id))
In my example, none of the IDs are auto-generated (they come from my datasets). So, I’m looking to grab the country_id
of a contact that matches the id
of randomly selected contact for this row. And then, I’ll use this country_id
to lookup the name of the country in the Countries dataset.
This is hardly an essential feature, since I can do this simply by adding a country_id
field to this schema and doing this:
from_dataset("Countries", "name", id: country_id)
But it’d be nice to not have to spit out the extra (unnecessary) fields. (Which I’m going to start another thread about.)