Re: OT: SQL Question

2012-03-25 Thread David Turner
2012 7:28 PM >Subject: OT: SQL Question > >My question is not specific to MySQL, even though I am using a MySQL db for >this project. I have a servlet/jsp/MySQL web site in production, and there >are about 2,000 records in the flights table. One of the foreign keys is >teacher_id

Re: OT: SQL Question

2012-03-23 Thread Michael Dykman
A many-to-many is generally best accomplished with a third linking table which contains the ids of the 2 records being linked ie. create table tflink ( flightid int; teacherid int; ); On Fri, Mar 23, 2012 at 10:28 PM, Mark Phillips wrote: > My question is not specific to MySQL, even though I am

OT: SQL Question

2012-03-23 Thread Mark Phillips
My question is not specific to MySQL, even though I am using a MySQL db for this project. I have a servlet/jsp/MySQL web site in production, and there are about 2,000 records in the flights table. One of the foreign keys is teacher_id. Up to this point, there is a one to many relationship between t