Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Split SQL insert statements for a schema using other datasets

$
0
0

You can use the "formula" data type and using the function:
from_dataset(DatasetName, Field, Criteria).
The criteria obviusly is the rule to pick the specific tuple you want, for exemple you can do something like this:
ID: from_dataset("Persona", "id_persona", first_name = "John")
In this way you can pick the id_persona from Persona dataset where name is John.
Hope you can solve with this!


Viewing all articles
Browse latest Browse all 2665

Trending Articles