Click here to Skip to main content
15,899,314 members
Home / Discussions / Database
   

Database

 
JokeRe: SQL server 2005 Pin
Vasudevan Deepak Kumar11-Jun-08 20:58
Vasudevan Deepak Kumar11-Jun-08 20:58 
AnswerRe: SQL server 2005 Pin
Ashfield11-Jun-08 22:25
Ashfield11-Jun-08 22:25 
QuestionSQL vs VB.net Pin
safealloys11-Jun-08 12:01
safealloys11-Jun-08 12:01 
AnswerRe: SQL vs VB.net Pin
Christian Graus11-Jun-08 12:51
protectorChristian Graus11-Jun-08 12:51 
GeneralRe: SQL vs VB.net Pin
safealloys16-Jun-08 8:32
safealloys16-Jun-08 8:32 
QuestionRe: SQL vs VB.net Pin
safealloys16-Jun-08 8:36
safealloys16-Jun-08 8:36 
Questiontables Pin
jds120711-Jun-08 9:50
jds120711-Jun-08 9:50 
AnswerRe: tables Pin
Pete O'Hanlon11-Jun-08 10:49
mvePete O'Hanlon11-Jun-08 10:49 
I wouldn't go with creating 46 tables - as they will mostly be the same. Without more information to go on, I would look at creating this using the following structure:
Department:
ID (int autonumber PK)
Name (NVarChar(100))

Rating:
ID (int autonumber PK)
Score (int)
RatingTypeID (int fk)
DepartmentID (int fk)

RatingType:
ID (int autonumber PK)
Description (NVarChar(100))
Then, your RatingType table would hold the types, e.g. Quality. The Department table would hold details on the department, and the Rating table would be point to the Department and to the RatingType (it would also hold the score). In this way, you get a nice flexible structure where you can add rating types in the future.

I hope this helps.

Deja View - the feeling that you've seen this post before.

My blog | My articles



AnswerRe: tables Pin
Christian Graus11-Jun-08 11:38
protectorChristian Graus11-Jun-08 11:38 
QuestionDatabase fields for forum project Pin
Shanmugapriya.G11-Jun-08 3:04
Shanmugapriya.G11-Jun-08 3:04 
AnswerRe: Database fields for forum project Pin
Ashfield11-Jun-08 4:40
Ashfield11-Jun-08 4:40 
AnswerRe: Database fields for forum project Pin
Colin Angus Mackay11-Jun-08 5:03
Colin Angus Mackay11-Jun-08 5:03 
GeneralRe: Database fields for forum project Pin
Pete O'Hanlon11-Jun-08 8:50
mvePete O'Hanlon11-Jun-08 8:50 
Questiona child row has multiple parents [modified] Pin
Kjetil Svendsen11-Jun-08 2:17
Kjetil Svendsen11-Jun-08 2:17 
QuestionStored Procedures Out Put Parameter Returns Null What is missed. Pin
greekius11-Jun-08 2:17
greekius11-Jun-08 2:17 
AnswerRe: Stored Procedures Out Put Parameter Returns Null What is missed. Pin
SomeGuyThatIsMe11-Jun-08 2:43
SomeGuyThatIsMe11-Jun-08 2:43 
GeneralRe: Stored Procedures Out Put Parameter Returns Null What is missed. Pin
greekius11-Jun-08 3:02
greekius11-Jun-08 3:02 
GeneralRe: Stored Procedures Out Put Parameter Returns Null What is missed. Pin
SomeGuyThatIsMe11-Jun-08 4:18
SomeGuyThatIsMe11-Jun-08 4:18 
AnswerRe: Stored Procedures Out Put Parameter Returns Null What is missed. Pin
Ashfield11-Jun-08 4:45
Ashfield11-Jun-08 4:45 
QuestionMixing Select Into and Appending Data Pin
prithaa11-Jun-08 1:00
prithaa11-Jun-08 1:00 
AnswerRe: Mixing Select Into and Appending Data Pin
Ashfield11-Jun-08 2:56
Ashfield11-Jun-08 2:56 
GeneralRe: Mixing Select Into and Appending Data Pin
prithaa11-Jun-08 5:49
prithaa11-Jun-08 5:49 
GeneralRe: Mixing Select Into and Appending Data Pin
prithaa11-Jun-08 6:37
prithaa11-Jun-08 6:37 
GeneralRe: Mixing Select Into and Appending Data Pin
prithaa11-Jun-08 7:19
prithaa11-Jun-08 7:19 
QuestionConnect to DB2 database Pin
Sankalp Verma11-Jun-08 0:47
Sankalp Verma11-Jun-08 0:47 

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.