G
Gusero
Hello, I am a database novice. I would like someone to explain the
pros and cons of each design below:
User
uID, uLastName, uFirstName
==== Design A ====
Access List
alMonthlyID, alUserID, alYear, alType
Monthly
mID, mJan, mFeb, mMar, mApr, mMay, mJun, mJul, mAug, mSep, mOct,
mNov, mDec
==== Design B ====
Access List
alMonthlyID, alUserID
Monthly
mID, mYear, mType, mJan, mFeb, mMar, mApr, mMay, mJun, mJul, mAug,
mSep, mOct, mNov, mDec
My first choice was Design A. Mainly because, alUserID will normally
have multiple years and types.
For some reason, the year and type fields seem to apply or rely on the
user more so than the set of months.
From what I have read, adjectives == fields, so I think I have that
part correct. I am just wondering if it
is okay to place them in an outer-related table?
I am now at a road-block with this, and I cannot decide which that I
need. Below is a sample output for 1 user.
John Doe
2008, Basic
$15.99, $15.99, $15.99, $15.99, $15.99, $15.99, $15.99, $15.99,
$17.99, $17.99, $17.99, $17.99
2008, New
-$0.99, -$0.99, -$0.99, -$0.99, -$0.99, -$0.99, $0.00, $0.00, $0.00,
$0.00, $0.00, $0.00
2009, Basic
$17.99, $17.99, $17.99, $17.99, $17.99, $17.99, $19.99, $19.99,
$19.99, $19.99, $19.99, $19.99
2009, Write
$3.99, $3.99, $0.00, $0.00, $0.00, $3.99, $3.99, $3.99, $3.99,
$3.99, $4.99, $3.99
TIA!
pros and cons of each design below:
User
uID, uLastName, uFirstName
==== Design A ====
Access List
alMonthlyID, alUserID, alYear, alType
Monthly
mID, mJan, mFeb, mMar, mApr, mMay, mJun, mJul, mAug, mSep, mOct,
mNov, mDec
==== Design B ====
Access List
alMonthlyID, alUserID
Monthly
mID, mYear, mType, mJan, mFeb, mMar, mApr, mMay, mJun, mJul, mAug,
mSep, mOct, mNov, mDec
My first choice was Design A. Mainly because, alUserID will normally
have multiple years and types.
For some reason, the year and type fields seem to apply or rely on the
user more so than the set of months.
From what I have read, adjectives == fields, so I think I have that
part correct. I am just wondering if it
is okay to place them in an outer-related table?
I am now at a road-block with this, and I cannot decide which that I
need. Below is a sample output for 1 user.
John Doe
2008, Basic
$15.99, $15.99, $15.99, $15.99, $15.99, $15.99, $15.99, $15.99,
$17.99, $17.99, $17.99, $17.99
2008, New
-$0.99, -$0.99, -$0.99, -$0.99, -$0.99, -$0.99, $0.00, $0.00, $0.00,
$0.00, $0.00, $0.00
2009, Basic
$17.99, $17.99, $17.99, $17.99, $17.99, $17.99, $19.99, $19.99,
$19.99, $19.99, $19.99, $19.99
2009, Write
$3.99, $3.99, $0.00, $0.00, $0.00, $3.99, $3.99, $3.99, $3.99,
$3.99, $4.99, $3.99
TIA!