database - Single DB field, with multiple referencing, MySQL -


i structuring db, need have field bed_types_id in table.

this field has multiple options, ex. king, queen, 2 queens, 2 doubles, etc.

if make field bed_types_id in table references table bed_types id, how reference more 1 option.

ex: 1, 2, 3 king, queen, or 2 queens, bed types.

how should relational database??

you need table 3 columns: id room_id bed_type_id

if room has king , queen, table have 2 rows room.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -