Jump to content

database table structure


dbdummy

Recommended Posts

Hi,

I am trying to figure out how to create my tables and am somewhat stuck, database structures totally confuse me.

My end result needs to be a schedule of courses offered in various cities. ie

City: Austin
Course: 101
Course Description: 101 is this
Date: June 5, 6
Course: 102
Course Description: 102 is this
Date: June 7, 8, 9
Course: 103
Course Description: 103 is this
Date: June 10, 11, 12

City: Houston at Someplace
Course: 101
Course Description: 101 is this
Date: June 7, 12
Course: 112
Course Description: 112 is this
Date: June 13, 14, 14
Course: 123
Course Description: 123 is this
Date: June 18, 19, 20

So, I created a table named cities (not even sure if I really need a cities table, but the names can be quite long...ie, the city name may contain where the location is, ie, Tucson at River Rd. and Campbell Ave.

in cities I have
- place (primary key)
- city_name
- city_location

I created a table named courses
in courses I have
- ckey (primary key)
- course_number
- course_name
- course_description

then I need to create a table named schedule

this is where I am most confused

I need to know the city_name, city_location, course_name, course_description and the dates for that particular course in that particular city.

any help is appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.