• DanCafeFood (2/11/2009)


    I

    There is a one to many relationship between room and course (1 room can have

    many courses)

    There is a one to many relationship between Course and Teacher (1 course can be

    taught by many teachers)

    There is also Many to Many relationship between Company and Class

    How would I design the database?

    It looks like you already a have the basic table srtuctures defined in the statement above. You have rooms (table names should always be plural), teachers, courses (I'm assuming courses and classes are the same), and companies. Then you just need to define your relationships. A search on Many To Many relationship in database design will return many resources.

    As Greg said, post what your ideas and folks will comment on them.