Can you combine elsif with from_dataset lookups?
Looks like a typo. You don't need the extra "if" after "elsif".
View ArticleHow to generate ordered SQL datetime values?
The only way to do this in mockaroo is using a formula. Start with a base datetime and increment based on a sequence or row number. Here's an example: http://mockaroo.com/schemas/59813
View ArticleHow to generate ordered SQL datetime values?
Thank you @mockaroo for the response. but I can't acess the page, the link is broken : Capture du 2017-03-27 14:27:19.png1365x229 12.1 KB
View ArticleHow to generate ordered SQL datetime values?
Sorry about that. Here is the correct link >> http://mockaroo.com/cbd5c970
View Article2 fields unique together
I want to fill table with data that implements many to many relationship. So I can create 2 column with type number and specify the range. But here's the issue: as all we know 2 foreign keys in mtm...
View ArticleImport Schemas question
Hi, I exported a Schema so have the JSON file for that. I then logged in with a different Mockaroo account and tried to import the schema using the Import functionality. However, I got the following...
View ArticleHow to create relative data
I would like to create data which should have data for a family and can be linked with last name. FirstName1 LastName1 (Self)FirstName2 LastName1 (Spouse)FirstName3 LastName1 (Child)FirstName4...
View ArticleReference a field in a formula - heavily nested json
Hi there, was using the site today and actually ran into this same issue. I was wondering if you were still planning on implementing a fix. Everything else has been working well, thanks for the great...
View ArticleIs there a way to create data for a set of iterators?
What I am about to describe is a situation where I want to generate a fixed number of records based on a combination of 1 or more columns. That is, if column A has 5 unique values and column B has 2...
View ArticlePulling from a dataset with certain distributions
I would like to create sample data where each record pulls from a dataset and replicates the distribution of status codes. Say 70% "200" codes, 5% "404" codes and so on... Would it be easier to simply...
View ArticleHow do I create a datatype for County field name?
How do I create a datatype for County field ? Do I have use if/else code ? Or, is there a built in function to do it? Currently, I don't see any.
View ArticleConvert a datatype error
I am receiving the following error when I try to calculate the price field times the quantity field in the same table. the error it: error: no implicit conversion of String into Integer. the price is...
View ArticleConvert a datatype error
It's probably interpreting the list data as a string. You can use Ruby's to_i method to convert the offending field to an integer. For example: quantity.to_i * price
View ArticleHow do I create a datatype for County field name?
Mockaroo does not have any built in county data. You would need to upload your own list of counties as a dataset.
View ArticlePulling from a dataset with certain distributions
When you select the "Dataset Column" type you'll see a distribution type dropdown appear. Select "custom" and a dialog will pop up that allows you to declare weights for specified values.
View ArticleIs there a way to create data for a set of iterators?
You can use a repeating sequence and compute the date value with a formula: http://mockaroo.com/6d199bd0
View ArticleHow to create relative data
I think the way I'd do it would be to first generate a set of last names and upload that back into mockaroo as a dataset. Then I would create a new schema pulling the last names from the dataset, a...
View ArticleImport Schemas question
Sorry for the late reply. You do need to manually remove the ID from the file.
View Article2 fields unique together
You can use two sequences and set the "repeat" and "restart at" fields accordingly: http://mockaroo.com/4d496860 Or, if you have the actual key values already, you can upload them as datasets, and...
View ArticleConvert a datatype error
Thank you for your response. I tried to convert using the method you have suggested. However, I am now getting another error about the formatting. [error: FormattedValue can't be coerced into Fixnum]...
View Article