Re: Normalization sql

2002-10-21 Thread Michael T. Babcock
John Chang wrote: What is the Title.ID and Actor.ID? Will this work if someone is doing a text search on a webpage? The results will go to another page. Does the below go to the first page or the results page? You need a good SQL book and a good CGI/web programming book. The .ID's are usua

Re: Normalization sql

2002-10-20 Thread John Chang
What is the Title.ID and Actor.ID? Will this work if someone is doing a text search on a webpage? The results will go to another page. Does the below go to the first page or the results page? Thank you. At 12:20 PM 10/16/2002 -0400, you wrote: John Chang wrote: Studios (StudioName, Studi

Re: Normalization sql

2002-10-16 Thread Arthur Fuller
Message - From: "John Chang" <[EMAIL PROTECTED]> To: "Arthur Fuller" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, October 14, 2002 7:26 PM Subject: Re: Normalization sql > > >Studios (StudioName, StudioID) > >Genres (GenreName, GenreID)

Re: Normalization sql

2002-10-16 Thread Michael T. Babcock
John Chang wrote: > >> Studios (StudioName, StudioID) >> Genres (GenreName, GenreID) >> Titles (VideoTitle, Details, StudioID, GenreID, BitRateID, TitleID) >> Actors (F_Name, L_Name, ActorID) >> Stars (TitleID, ActorID) > > TitleGenres (TitleID, GenreID) > > So, if I just use theses tables I will

Re: Normalization sql

2002-10-14 Thread John Chang
>Studios (StudioName, StudioID) >Genres (GenreName, GenreID) >Titles (VideoTitle, Details, StudioID, GenreID, BitRateID, TitleID) >Actors (F_Name, L_Name, ActorID) >Stars (TitleID, ActorID) TitleGenres (TitleID, GenreID) So, if I just use theses tables I will be OK if the video has multiple tit

Re: Normalization sql

2002-10-14 Thread John Chang
I forgot to add Video (This has all the Primary key id from the tables below) Now does it work? My question is how do I get the Primary keys into the video table? Do I just put them in and the database will know it should look in the other tables? How do I connect it? I read some books bu

Re: Normalization sql

2002-10-14 Thread Michael Zimmermann
Hi John, your design is normalized, but incomplete and unconnected. Where do you put the information which actor was playing in what title, which title was done in what studio etc. ? Normalization is a representation technique to avoid storing *redundant* information. But first this informati

Re: Normalization sql

2002-10-14 Thread Arthur Fuller
You're starting off ok, just missing the links between the tables. I would suggest for simplicity though that you change the names of your PKs to reflect their table, i.e. Title (VideoTitle, Details, TitleID). Otherwise once you do multi-table queries joins you will have to specify the table names