-- Mar 17 In-Class Exercise
Functional dependencies:
USERID, PASSWORD--> USERNAME, EMAIL
POST--> USERID, PCONTENT, PTIME, PPOPULARITY.
Tables:
USER(USERID, PASSWORD, USERNAME, EMAIL)
POST(USERID, POST, PCONTENT, PTIME, PPOPULARITY)
My tables are in BCNF because the left elements fix the rest elements.
For the USER table, if we know USERID and PASSWORD, we know USERNAME and EMAIL.
For the POST table, if we know POST, we know USERID, PCONTENT, PTIME, and PPOPULARITY.
(
Edited: 2021-03-17)
Functional dependencies:
USERID, PASSWORD--> USERNAME, EMAIL
POST--> USERID, PCONTENT, PTIME, PPOPULARITY.
Tables:
USER(USERID, PASSWORD, USERNAME, EMAIL)
POST(USERID, POST, PCONTENT, PTIME, PPOPULARITY)
My tables are in BCNF because the left elements fix the rest elements.
For the USER table, if we know USERID and PASSWORD, we know USERNAME and EMAIL.
For the POST table, if we know POST, we know USERID, PCONTENT, PTIME, and PPOPULARITY.