Jump to content

is this database relationship looks good? anybody can comment

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
faith89

faith89

    Newbie

  • Members
  • PipPip
  • 14 posts
i have created a database for a room reservation. for this database i'm using mysql phpmyadmin.

Right now it's just have the simple basic data that needed in the database. I hope someone can commeneted wether this database relationship look good or not...especially part where the data relationship between the booking table and customer table.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It looks OK to me.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
chirag.jain18

chirag.jain18

    Newbie

  • Members
  • PipPip
  • 10 posts
I dont understand why relation between booking and room and room and roomtype is one to many? As booking id is primary key,one booking id will have only one corresponding room id. Similarly,one roomid will have only one corresponding roomtype id

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
A room will have multiple bookings. Similarly, a room type will have multiple rooms.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog