Click here to Skip to main content
15,921,941 members
Home / Discussions / Database
   

Database

 
GeneralRe: weird Oracle problem Pin
ThomasH119-Jul-04 12:27
ThomasH119-Jul-04 12:27 
GeneralHelp with SQL query Pin
brdavid26-Jun-04 9:52
brdavid26-Jun-04 9:52 
GeneralRe: Help with SQL query Pin
Michael Potter28-Jun-04 7:07
Michael Potter28-Jun-04 7:07 
GeneralRe: Help with SQL query Pin
brdavid28-Jun-04 9:11
brdavid28-Jun-04 9:11 
GeneralRe: Help with SQL query Pin
Michael Potter28-Jun-04 10:37
Michael Potter28-Jun-04 10:37 
GeneralRe: Help with SQL query Pin
brdavid28-Jun-04 12:04
brdavid28-Jun-04 12:04 
GeneralRe: Help with SQL query Pin
Michael Potter29-Jun-04 8:55
Michael Potter29-Jun-04 8:55 
GeneralRe: Help with SQL query Pin
brdavid30-Jun-04 2:37
brdavid30-Jun-04 2:37 
Well, unfortunately, there is more complication to SubSkills than one would think. I have a field in SubSkills called Table that is a Yes/No field. If marked then the SubSkill Code Field (these are just fields that work like SeqNum-autonumbers but they have more meaning than just some arbitrary number) will contain a user-defined table. We can return to this later.

In regards to your recommendations I have adjusted these tables as far as I think they can logically go.

ERAS - EraCode, Description, Synopsis
AGESISERAS - EraCode, AgeCode, Age, TimeOrder, Synopsis
GROUPS - GroupCode, Description
CATEGORIES - GroupCode, CategoryCode, Description, ...
SKILLS - SkillCode, Description, ...
SUBSKILLS - SkillCode, SubSkillCode, Description, ...

the elipse means there are more fields which are dependent on the Description field. I need to have a link to GroupCode from CategoryCode because there might be a Category that appears in two Groups, for example, the Category "General". So I just can't eliminate GroupCode from CATEGORIES since I can't be too sure I will grab the right Group. However, each skill should be unique per Category. I don't see how a person could categorize the same skill in two places. So I have made that definition to eliminate some columns there, however SubSkills needs to know what Skill because there could be a SubSkill that exists in two or more skills, for example, the user defined tables. If I have a Skill called Riding and another called Herding, both of these skills could in turn have the same subskills so I would be unsure what skill I am grabbing if I just looked at SubSkills.

In light of this I think I have gone down as far can, however i light of what you said I think the best I can do for SKILLSINAGES is the following

AgeCode
GroupCode
CategoryCode
SkillCode
SubSkillCode

Because I could have the same Group in different Ages, the same Category in different Groups and the same Subskill in different skills. Maybe there is something I am missing.

thanks for your help in this matter though. It is helping me see my database data a touch differently in light of connections, relations and such. Smile | :)

side question: I could combine tables but wondering if that is also worth it. That is, take for example Groups and Categories. I could combine them so that I have
CATEGORYGROUPS: CategoryGroupID, Group, Category, (other fields here)
I could perform the same with Skills and SubSkills and get
SKILLS: SkillsID, Skill, SubSkill, (other fields here)

A forseeable issue is that not all Skills have SubSkills, so SubSkill may be blank. Does this seem like a logical solution and perhaps a better design? Thanks!
GeneralRe: Help with SQL query Pin
Grimolfr28-Jun-04 9:58
Grimolfr28-Jun-04 9:58 
GeneralInserting Rows... Pin
Sai197125-Jun-04 19:59
Sai197125-Jun-04 19:59 
GeneralRe: Inserting Rows... Pin
Rein Hillmann26-Jun-04 22:11
Rein Hillmann26-Jun-04 22:11 
QuestionHow Can I Join more than two tables in SQL Pin
JawedVikia8024-Jun-04 21:40
JawedVikia8024-Jun-04 21:40 
AnswerRe: How Can I Join more than two tables in SQL Pin
Colin Angus Mackay24-Jun-04 22:03
Colin Angus Mackay24-Jun-04 22:03 
AnswerRe: How Can I Join more than two tables in SQL Pin
wgdesigner25-Jun-04 1:38
wgdesigner25-Jun-04 1:38 
GeneralConcurrency Pin
IamADotNetGuy24-Jun-04 10:04
IamADotNetGuy24-Jun-04 10:04 
GeneralRe: Concurrency Pin
Rein Hillmann26-Jun-04 22:13
Rein Hillmann26-Jun-04 22:13 
GeneralRe: Concurrency Pin
Grimolfr28-Jun-04 7:56
Grimolfr28-Jun-04 7:56 
GeneralRe: Concurrency Pin
IamADotNetGuy28-Jun-04 8:07
IamADotNetGuy28-Jun-04 8:07 
GeneralSQL Query Pin
Guinness4Strength24-Jun-04 9:39
Guinness4Strength24-Jun-04 9:39 
GeneralRe: SQL Query Pin
Michael Potter25-Jun-04 3:32
Michael Potter25-Jun-04 3:32 
Generalproblem: records appear twice in dataset Pin
sharonz24-Jun-04 6:30
sharonz24-Jun-04 6:30 
GeneralRe: problem: records appear twice in dataset Pin
IamADotNetGuy28-Jun-04 10:43
IamADotNetGuy28-Jun-04 10:43 
GeneralVery easy question Pin
Guinness4Strength24-Jun-04 5:57
Guinness4Strength24-Jun-04 5:57 
GeneralRe: Very easy question Pin
Colin Angus Mackay24-Jun-04 6:14
Colin Angus Mackay24-Jun-04 6:14 
GeneralRe: Very easy question Pin
Guinness4Strength24-Jun-04 6:29
Guinness4Strength24-Jun-04 6:29 

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.