Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is the relational database equivalent of Factorial and the Fibonacci function?
    primarykey
    data
    text
    <p>When learning a new programming language there are always a couple of traditional problems that are good to get yourself moving. For example, Hello world and Fibonacci will show how to read input, print output and compute functions (the bread and butter that will solve basically everything) and while they are really simple they are nontrivial enough to be worth their time (and there is always some fun to be had by calculating the factorial of a ridiculously large number in a language with bignums)</p> <p>So now I'm trying to get to grips with some SQL system and all the textbook examples I can think of involve mind-numbingly boring tables like "Student" or "Employee". <strong>What nice alternate datasets could I use instead?</strong> I am looking for something that (<strong>in order of importance</strong>) ...</p> <ol> <li><strong>The data can be generated by a straightforward algorithm.</strong> <ul> <li>I don't want to have to enter things by hand.</li> <li>I want to be able to easily increase the size of my tables to stress efficiency, etc</li> </ul></li> <li><strong>Can be used to showcase as much stuff as possible.</strong> Selects, Joins, Indexing... You name it.</li> <li><strong>Can be used to get back some interesting results.</strong> <ul> <li>I can live with "boring" data manipulation if the data is real and has an use by itself but I'd rather have something more interesting if I am creating the dataset from scratch.</li> </ul></li> </ol> <p>In the worst case, I at least presume there should be some sort of benchmark dataset out there that would at least fit the first two criteria and I would love to hear about that too.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload