r/DatabaseHelp • • Jan 07 '21

Simple db design question

I’m attempting to create a database for a personal project of mine but I can’t wrap my head around this very simple problem. It may not even be possible.

My project is complex so i’ll just give an example. I have two tables. One lists people with attributes such as name, gender, number, and such. the other lists game consoles such as ps3, Xbox, pc. A game console can be owned by many people and a person can own more than one game consoles.

How would I structure this so that I could query a person and list their owned game consoles?

3 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/jcp1417 Jan 07 '21

Yep I understand perfectly now. It’s been awhile since my last db class so I’m a little rusty. Thanks

1

u/Mynotoar Jan 08 '21

Sweet! Yeah RDBs are finnicky - many to many is bad enough, and normalisation is just a pain in the ass. I wonder if we'll ever move en masse to NoSQL databases some day.