• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

3 beginners questions  RSS feed

 
Ranch Hand
Posts: 523
Chrome Linux VI Editor
  • 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: 64172
215
  • 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: 1120
38
IBM DB2 Java Netbeans IDE Spring
  • 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.
 
Sheriff
Posts: 24374
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Database normalization
 
Ranch Hand
Posts: 35
  • 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 carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!