Click here to Skip to main content
15,912,400 members
Home / Discussions / Database
   

Database

 
AnswerRe: How do I connect ASP.NET page to Lotus notes to send a mail ? Pin
Frank Kerrigan11-Oct-06 2:54
Frank Kerrigan11-Oct-06 2:54 
AnswerRe: How do I connect ASP.NET page to Lotus notes to send a mail ? Pin
User 19428926-Oct-06 2:33
User 19428926-Oct-06 2:33 
Questionmovie CATALOGUE Pin
flemmard10-Oct-06 17:17
flemmard10-Oct-06 17:17 
AnswerRe: movie CATALOGUE Pin
Colin Angus Mackay11-Oct-06 3:00
Colin Angus Mackay11-Oct-06 3:00 
GeneralRe: movie CATALOGUE Pin
flemmard11-Oct-06 14:45
flemmard11-Oct-06 14:45 
GeneralRe: movie CATALOGUE Pin
Colin Angus Mackay11-Oct-06 21:38
Colin Angus Mackay11-Oct-06 21:38 
GeneralRe: movie CATALOGUE Pin
flemmard13-Oct-06 16:15
flemmard13-Oct-06 16:15 
GeneralRe: movie CATALOGUE Pin
Colin Angus Mackay13-Oct-06 17:02
Colin Angus Mackay13-Oct-06 17:02 
Here is my critique.

flemmard wrote:
We use natural attributes as the primary keys of each entities, and we assume the following attributes are unique within it's relational schema


As this is an academic exercise this is acceptable. However, in the real world "natural attributes" are often a poor choice unless they are numbers because keys should be as short as possible so that searches on the key waste as little time as possible pulling data off the disk. The use of variable length columns in a key is also prone to performance problems in a real world application.

The tables Act and Direct are poorly named. As this is an academic exercise this may not matter much. In the real world it is better to have the many-to-many intermediate tables named after their source tables (e.g. MovieActor) so that the schema is easier to maintain.

What happens if you have a film where the same person is a Director and an Actor? (e.g. Star Trek Insurrection. Jonathan Frakes is both the Director and the Actor playing Cmdr. Riker.) You may wish to normalise this better. (A tell-tale sign is that the structure of the Actor and Director table are the same) In a real world scenario it may be acceptable to denormalise the model somewhat for performance advantages, but maybe not for an academic exercise where correctness of model is more important than performance of model.

Country is a varchar(100) - There are roughly 200 countries in the world, the data in this column will be repeated a lot. (The same goes for Genre and Nationality) Consider refactoring this to a separate lookup table with a small-integer as the key. However, if you are having "natural attributes for keys" then there is not really any benefit - I mostly use counters, identity columns and Guids for keys.


GeneralRe: movie CATALOGUE Pin
flemmard13-Oct-06 17:19
flemmard13-Oct-06 17:19 
GeneralRe: movie CATALOGUE Pin
Colin Angus Mackay14-Oct-06 1:04
Colin Angus Mackay14-Oct-06 1:04 
AnswerRe: movie CATALOGUE Pin
Frank Kerrigan11-Oct-06 3:04
Frank Kerrigan11-Oct-06 3:04 
GeneralRe: movie CATALOGUE Pin
Colin Angus Mackay11-Oct-06 3:07
Colin Angus Mackay11-Oct-06 3:07 
GeneralRe: movie CATALOGUE Pin
Frank Kerrigan11-Oct-06 5:32
Frank Kerrigan11-Oct-06 5:32 
Question[Message Deleted] Pin
Ah_Mohsen_aly10-Oct-06 16:01
Ah_Mohsen_aly10-Oct-06 16:01 
AnswerRe: Data base logic Pin
Chris Buckett10-Oct-06 23:46
Chris Buckett10-Oct-06 23:46 
GeneralRe: Data base logic Pin
Ah_Mohsen_aly11-Oct-06 7:35
Ah_Mohsen_aly11-Oct-06 7:35 
AnswerRe: Data base logic Pin
Colin Angus Mackay11-Oct-06 2:42
Colin Angus Mackay11-Oct-06 2:42 
GeneralRe: Data base logic Pin
Frank Kerrigan11-Oct-06 2:44
Frank Kerrigan11-Oct-06 2:44 
GeneralRe: Data base logic Pin
Colin Angus Mackay11-Oct-06 2:50
Colin Angus Mackay11-Oct-06 2:50 
QuestionProblems with SQL Pin
Britney S. Morales10-Oct-06 10:12
Britney S. Morales10-Oct-06 10:12 
AnswerRe: Problems with SQL Pin
Colin Angus Mackay11-Oct-06 2:45
Colin Angus Mackay11-Oct-06 2:45 
AnswerRe: Problems with SQL Pin
Frank Kerrigan11-Oct-06 2:47
Frank Kerrigan11-Oct-06 2:47 
AnswerRe: Problems with SQL Pin
Eric Dahlvang12-Oct-06 4:57
Eric Dahlvang12-Oct-06 4:57 
GeneralRe: Problems with SQL Pin
Britney S. Morales13-Oct-06 2:19
Britney S. Morales13-Oct-06 2:19 
QuestionAnalysis Services 2000 - Member.FetchAllProperties Error Pin
Kevin McFarlane10-Oct-06 3:26
Kevin McFarlane10-Oct-06 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.