Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

3 beginners questions

 
Ranch Hand
Posts: 574
VI Editor Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm retired, the project I have in mind is for fun and I doubt anyone else will ever use it.

Some 20 years ago I was involved in a project that used a database, and learned both how hard it is and how important it is to define your, um, framework? correctly.  By that I mean the various tables and how they interact.  The 2 things I remember that you shouldn't store a datum in more than 1 table, and we ended up with 2-3 "invisible" tables that the user never saw but were needed to ensure each datum ended up in a single table.  My app will have 5-7 tables.

Where is a good place to learn how to design this?  And what is it called?

Second, my application (it's for a game) has 5 players, each playing 3 positions.  You do not know which player is playing which positions.  Each position has a name.  Say we have a, b, c, d, e, f, g, h, ....  I'm playing a, b, and c.  Fred could be playing d, g, and n.  But I don't know that, I have to deduce it.  How would you suggest I store this in a database?

Finally, this will run on a laptop.  Which database system should I use (donning asbestos underpants)?

Oh yeah, I'll be writing this in either Java or Kotlin.
 
Marshal
Posts: 69382
276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jim Venolia wrote:. . . Where is a good place to learn how to design this?

Any good undergraduates' database course or databases book.

And what is it called?

A schema. Or normalisation. I think.
 
Bartender
Posts: 1264
39
IBM DB2 Netbeans IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With respect to your question about which database to use,  my favourite choice when I want to play with some technology is MySQL. It's also one of the most widely used in tutorials all over the web.
 
Marshal
Posts: 25594
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Database normalization
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is a good place to learn how to design this?

Easy Learning MySQL SQL  Easy Learning JDBC + MySQL

 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic