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

Image may be NSFW.
Clik here to view.

SQL create table types

Won't be able to get the actual code until I get to work tomorrow, but I have tried: /(varchar2?|varying)((\d+(\s+BYTE)?))?|string|text/, (I didn't want to write out all the combinations. You know...

View Article


Composite schema

Say I want to add breakfast, lunch and dinner every day with random menus CREATE TABLE meals ( meal_type VARCHAR, -- CustomList('breakfast', 'lunch', 'dinner') meal_time TIMESTAMP, -- Date menu...

View Article


Various API access inquiries

You can't call a datatype directly, but you can add a field of that data type, hide it from the output by giving it a name starting with two underscores (for example, _myfield), and referencing it in...

View Article

Composite schema

If you include all of the dependent data as multiple columns in a single CSV file, you can upload that file into Mockaroo as a dataset, then reference the columns in your schema using the Dataset...

View Article

Composite schema

but there is not a 1-1 relationship between meal_type and menu. Say I want to choose a random menu which is a "Breakfast". In butchered SQL: SELECT random(menu) FROM meals WHERE meal_type =...

View Article


Various API access inquiries

Gotcha, that should work, but my reasoning was: case field('col_1') where a this = Country(['The Republic of Dave', 'Petoria', 'Canada']) where b this = Paragraphs(1, 3) ... end now, there could be...

View Article

Is it possible to get get the number of times we have iterated through a...

if I had the dataset: (a,b,c)which would be iterated over an arbitrary number of times, how could I get the iteration number? itr,data 0,a 0,b 0,c 1,a 1,b 1,c ... n,a n,b n,c

View Article

Is it possible to get get the number of times we have iterated through a...

There isn't a way to get it directly but you could add a row number field and use a formula like row_num % list_length

View Article


Is it possible to get get the number of times we have iterated through a...

any way of getting list_length without hardcoding (it is being stored in a dataset)?

View Article


Is it possible to get get the number of times we have iterated through a...

solved:https://www.mockaroo.com/41673760cartesian Dataset column between the desired dataset and a list of numbers (I made mine 0-20000).https://www.mockaroo.com/lists/15867

View Article

Which is the data type of the new column?

I have a field "A" with custonlist type : title, year, venue, local of publication, language, media, type of publication, pages, ISSN, volume, number i need new column "B" if this colum A == yeardata...

View Article

Do curl bash and mockaroo get along? (they do, I'm an idiot)

I am using Curl to download sql data. There are two nearly identical schema which should return nearly identical results, the first Event(daily) works perfectly, but the second Event(weekly) is...

View Article

Do curl bash and mockaroo get along? (they do, I'm an idiot)

Here's some data I downloaded from Event (Weekly) using curl. Does that look right to you? insert into COMMON_USER.EVENT (ID, START_DAY, END_DATE, TITLE, DESCRIPTION, ALL_DAY, CALENDAR_ID, LOCATION,...

View Article


Composite schema

You might make both meal_type and menu custom lists, then use the "custom" distribution option for menu. Custom distributions allow you to fill out a probability table to weight different...

View Article

Do curl bash and mockaroo get along? (they do, I'm an idiot)

come to mention it when I run that one alone, it works. Think it might be my script?

View Article


Image may be NSFW.
Clik here to view.

Which is the data type of the new column?

There are several solutions to your problem: 1. Upload a new dataset set.csv A,B year,'[2010, 2004, 2005,...]' language,'["English", "Spanish", "Portugues",...]' where [...] is a JSON array then in...

View Article

Composite schema

so break them into multiple datasets?

View Article


Do curl bash and mockaroo get along? (they do, I'm an idiot)

curl $weeklink >> "Event(weekly).sql" should have been curl $weeklink > "Event(weekly).sql"

View Article

Composite schema

Yes, or if they are only a few items each you can just use custom list. Custom lists and single column datasets are essentially equivalent.

View Article

Composite schema

I was thinking I could get some more functionality if I moved away from the website gui and started using Python+curl, does this seem like a reasonable assessment?

View Article
Browsing all 2665 articles
Browse latest View live