• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

3 beginners questions  RSS feed

 
Ranch Hand
Posts: 548
1
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: 64475
225
  • 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: 1136
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.
 
Marshal
Posts: 24461
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Database normalization
 
Ranch Hand
Posts: 37
  • 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

 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!