Quantcast
Channel: Mockaroo Community Forum - Latest posts
Browsing all 2665 articles
Browse latest View live
↧

Convert a datatype error

Looks like the formula you want is: line_price.to_i * line_quant.to_i

View Article


Creating an email address with a sequential number?

Hi, I need to create a set of email address that looks like the following michael.thomas+userid1@mydomain.commichael.thomas+userid2@mydomain.com.. michael.thomas+userid1000@mydomain.com As you can see...

View Article


Creating an email address with a sequential number?

You can do this with a combination of username, domain, and row number or sequence: http://mockaroo.com/a8e012b0

View Article

Auto Increment Key fields

Auto Increment Key fieldsCan we add auto increment fields similar to SQL serverStarting at 1 and going up by 1 for each record ? Jawahar

View Article

Auto Increment Key fields

Row Number automatically does this, or you can use Sequence to start at a specific value.

View Article


Random date in YYYYMMDD

The supported date formats do not include the old school YYYYMMDD format. Turns out you can do this in ruby in the formula editor: (now() - days(random(0,5000))).strftime('%Y%m%d') This will give you...

View Article

Using SQL Expression

As possible solution for your first query (Select sum(pd_subtotal) FROM PurchaseOrder_Detail where pd_po_nbr=:ph_po_nbr), I'd probably use something like: select pd_vendor_nbr, sum(pd_qty) as "sum of...

View Article

Image may be NSFW.
Clik here to view.

Generating Real UK Postcodes

HiHere's a possible solution for you (it's maybe "overkill", but quite flexible - if you ever need any other postcodes), using some database programming. I have used M1-M18, then 1 digit (0-9), then 2...

View Article


Generate data with datetime between two precised hours

Would it be possible to have datetime increment between two precised hours : Here is what I have for my datetime : (date('28/04/2017') + 26400 + minutes(id)).strftime('%d-%m-%Y %H:%M:%S') It starts at...

View Article


Generate data with datetime between two precised hours

Yes, you can use a sequence with the "restart at" option to generate the number of minutes. Then use a formula to add that to a fixed date.

View Article

Generate data with datetime between two precised hours

Thank you for the idea

View Article

JSON Array without child Dictionary

I'm trying to replicate the following data structure but can't figure out a way to achieve this, any help would be much appreciated: "payload": { "id": "1", "modalStack": [], "pageStack": [ "page1",...

View Article

JSON Array without child Dictionary

You can get an array of strings by simply giving any field a name with brackets. For example: modalStack[1-3] will generate an array with between 1 and 3 items inclusive. You'll probably want to use...

View Article


Relationship or conditions in dataset

Hello everybody,maybe my question has been answered already, but I'm no native English speaking person and for that reason it's quite difficult to use the correct searching tags.I want to simulate...

View Article

Relationship or conditions in dataset

Here is a very simple example using formulas to categorize interest based on income: http://mockaroo.com/e9540eb0

View Article


Relationship or conditions in dataset

Hello Mark,thank you for your example but this formula looks to strict for me.I have a scale for social layer with lower, middle and upper class. If I would use this kind of formula, it would mean...

View Article

Use sha256 function on another field

How can i use sh256 function on another field ? Ex: Name -> BuzzwordCrypt - > sha256('Name')

View Article


Regex with referenced fields

I created a field called "industry" with different industry values. I wanted to create another field called "preferred industry" with 3 industries, separated by commas.e.g.Retail, FMCG, Hospitality To...

View Article

Regex with referenced fields

Here is an example that uses bracket notation to generate multiple values (for example, preferred_industry[1-3] will generate between 1 and 3 values in an array). It also uses an inline formula (the...

View Article

Use sha256 function on another field

Here is an example: http://mockaroo.com/71ac3e40 It uses the following formula: digest(name, 'SHA1', 'hex')

View Article
Browsing all 2665 articles
Browse latest View live