views:

51

answers:

2

I'm looking for some sample database data that I can use for testing and demonstrating a DB tool I am working on. I need a DB that has (preferably) many tables, and many foreign key relationships between the tables.

Ideally the data would be in SQL dump format, or at least in something that maintains the foreign key references, and could be easily imported into an RDBMS (MySQL or H2).

The dataset itself doesn't have to be huge (in fact, best if it's not). I thought about using the Stackoverflow Data Dump, but it's only about 5 tables.

+1  A: 

What about using the entire Wikipedia database?

webdestroya
And if that's too big (quite possible), maybe the "current versions only" dump.
Matthew Flaschen
Hmm, I actually considered that, but the *compressed* "pages-articles" archive is 5.7GB, is XML, and I'm not quite sure which tables it includes. I'm afraid it'll be a bit unwieldy.
Caffeine Coma
@Caffeine Coma - The pages one only includes the pages table. And uncompressed I think it is rather huge. But you can get the other tables as well.
webdestroya
+1  A: 

I should learn to RTFM- MySQL has a sample database for exactly this kind of thing. It's called Sakila. It's small, but it does have a good number of connected tables. I'm still eager to hear more suggestions though.

Caffeine Coma
Maybe browse some of the open source projects on SourceForge to see if any of them come with a database you can use.
Martin Smith