dbdummy Posted June 24, 2006 Share Posted June 24, 2006 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. ieCity: AustinCourse: 101Course Description: 101 is thisDate: June 5, 6Course: 102Course Description: 102 is thisDate: June 7, 8, 9Course: 103Course Description: 103 is thisDate: June 10, 11, 12City: Houston at SomeplaceCourse: 101Course Description: 101 is thisDate: June 7, 12Course: 112Course Description: 112 is thisDate: June 13, 14, 14Course: 123Course Description: 123 is thisDate: June 18, 19, 20So, 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_locationI created a table named coursesin courses I have- ckey (primary key)- course_number- course_name- course_descriptionthen I need to create a table named schedulethis is where I am most confusedI 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. Quote Link to comment Share on other sites More sharing options...
fenway Posted June 25, 2006 Share Posted June 25, 2006 A simple lookup table with a few FKs from your other tables should suffice. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.