SlideShare a Scribd company logo
Exam Preparation Day
QUESTION 5 – RELATIONAL DATABASE MANAGEMENT SYSTEMS
a. (i)
Identify one issue with storing the data in a single table, as shown above.
a. (i)
Identify one issue with storing the data in a single table, as shown above.
- Repetitive data wastes disk space. Costs money.
- Repetitive data is time consuming to type. Wastes employees’ time, costs money. Inefficient.
- Repetitive data entry / typing may result in errors. Results from queries / outputs may be
inaccurate. Unreliable.
a. (ii)
Explain how a relational database can resolve the issue you identified in part (a)(i).
a. (ii)
Explain how a relational database can resolve the issue you identified in part (a)(i).
- By normalising data into source tables, in this case into Customer (or Business) and Product (or
Drinks), the amount of initial data entry is reduced. The benefits include reduced disk space,
accuracy, ease of data entry.
b. (i)
Discuss the effect of having Customer ID (C_ID) and Product ID (P_ID) as composite keys in Items
Table.
b. (i)
Discuss the effect of having Customer ID (C_ID) and Product ID (P_ID) as composite keys in Items
Table.
- This would not be an ideal composite foreign key because any combination of Product and
Customer could only occur once. This would have the effect of, for example, Freed’s Drinks only
being able to purchase 24 Coke Cans on one occasion.
b. (ii)
Discuss the effect of having Customer ID (C_ID) and Date (I_Date) as composite keys in Items
Table.
b. (ii)
Discuss the effect of having Customer ID (C_ID) and Date (I_Date) as composite keys in Items
Table.
- This would not be an ideal composite foreign key because any combination of Product and
Date could only occur once. This would have the effect of, for example, Freed’s Drinks only being
able to purchase one product on Friday October.
b. (iii)
Discuss an appropriate composite keys for the Items Table.
b. (iii)
Discuss an appropriate composite keys for the Items Table.
- C_ID, IP_TS (item purchase Time / Date Stamp)…? CHECK THIS
c. (i)
Two of the entities in the database are ‘Customers’ and ‘Products’. Explain the relationship
between these two entities.
c. (i)
Two of the entities in the database are ‘Customers’ and ‘Products’. Explain the relationship
between these two entities.
- One customer can purchase Many item types. One item type can be purchased by Many
customers. The relationship is therefore Many to Many and can be resolved by including a
transaction table with foreign keys from each source table.
c. (ii)
Complete the diagram above to include the Table Relationships.
c. (ii)
Complete the diagram above to include the Table Relationships.
c. (iii)
Explain the table relationship between ‘Customers’ and ‘Products’ in the context of this table
relationship diagram from part (ii)
c. (iii)
Explain the table relationship between ‘Customers’ and ‘Products’ in the context of this table
relationship diagram from part (ii)
It’s still a many to many relationship, but it’s been resolved by the inclusion of the Items table,
with a sub-form / portal into this via the Invoice table to include multiple purchases at any given
time. CHECK THIS, unsure what’s being asked.
c. again
Design an appropriate query that will output this information.
c. again
Design an appropriate query that will output this information.
SELECT P_ID P_Name P_CostPrice Quantity I_Date
FROM Products Products Products Items Invoice
WHERE No query, all items sorted
SORTBY or ORDERBY Quantity, descending
STOPAT 1 (for most popular product)
3 (for top three products)
**NOTE: Assumes Quantity is a summary field that totals all for a given P_ID. If not, may need an
additional field.
d.
Discuss how the database for Big Drink Supplies could be expanded to automate the ordering
system and reduce user error.
d.
Discuss how the database for Big Drink Supplies could be expanded to automate the ordering
system and reduce user error.
Repeating weekly / monthly automated orders. Script is run to email is sent to customers seven
days prior to order being processed. Order details generated from DB based on previous (or
first) orders. If nothing is done by the processing date, order proceeds. If there’s a problem,
customer can login and alter details themselves via a web interface to the database (bypassing
data entry by an employee, eliminating errors when transcribing e.g. from phone calls or email).
Whenever data is entered, a pop up or summary of the order is shown to the user to ensure that
the entered data is correct prior to the order proceeding and funds being withdrawn.
e.
Explain the recommended practices that a database developer will need to implement to ensure
that customer’ personal information is not disclosed to unauthorised clerical staff.
e.
Explain the recommended practices that a database developer will need to implement to ensure
that customer’ personal information is not disclosed to unauthorised clerical staff.
- Login details (username and password) on computer and database start up. User groups /
permissions prevent clerical staff from accessing certain information.
- Local encryption of working copies of data.
- Viewing of clients’ data will have visible data obfuscated.
- Emails, physical paper etc. with customer details are destroyed once data is entered.
- Onsite and offsite backups are secured / encrypted.
Questions?

More Related Content

Similar to Question 5 - 2k15 Exam Preparation Day

[Provided Data - US] ChiQuyen Dinh
 [Provided Data - US] ChiQuyen Dinh [Provided Data - US] ChiQuyen Dinh
[Provided Data - US] ChiQuyen Dinh
Lam Le
 
CIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docxCIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docx
mccormicknadine86
 
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docxProduct Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
stilliegeorgiana
 
IST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docxIST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docx
priestmanmable
 
Bis 245
Bis 245Bis 245
Bis 245
Tenny Trumph
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docx
faithxdunce63732
 
inventory management system
 inventory management system inventory management system
inventory management system
Barbara Onwutalobi
 
Inventory management system
Inventory management systemInventory management system
Inventory management system
pavanwalecha
 
Dynamics gp insights to manufacturing
Dynamics gp insights to manufacturingDynamics gp insights to manufacturing
Dynamics gp insights to manufacturing
Steve Chapman
 
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docxRunning Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
todd581
 
Supply Chain Management- MIS
Supply Chain Management- MISSupply Chain Management- MIS
Supply Chain Management- MIS
Nilanjan Paul
 
Microsoft access VBA communication with RS232 Peripherals
Microsoft access VBA  communication with RS232 PeripheralsMicrosoft access VBA  communication with RS232 Peripherals
Microsoft access VBA communication with RS232 Peripherals
topomax
 
20.project inventry management system
20.project inventry management system20.project inventry management system
20.project inventry management system
Lapi Mics
 
Tiki giftware shop database business information system
Tiki giftware shop database business information systemTiki giftware shop database business information system
Tiki giftware shop database business information system
cycapy
 
8 Simple Rules for submitting your Vendor Documents
8 Simple Rules for submitting your Vendor Documents8 Simple Rules for submitting your Vendor Documents
8 Simple Rules for submitting your Vendor Documents
DocBoss
 
Coit11237 assignment 2 specifications
Coit11237 assignment 2 specificationsCoit11237 assignment 2 specifications
Coit11237 assignment 2 specifications
Nicole Valerio
 
Technology & Innovation - User Experience in Business Database Systems
Technology & Innovation - User Experience in Business Database SystemsTechnology & Innovation - User Experience in Business Database Systems
Technology & Innovation - User Experience in Business Database Systems
Cris Ong
 
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docxCIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
clarebernice
 
Relational Database
Relational DatabaseRelational Database
Relational Database
Xuan(Sharon) Han
 
Unit 33 Assign 1 Final
Unit 33 Assign 1 FinalUnit 33 Assign 1 Final
Unit 33 Assign 1 Final
priscilla wilson
 

Similar to Question 5 - 2k15 Exam Preparation Day (20)

[Provided Data - US] ChiQuyen Dinh
 [Provided Data - US] ChiQuyen Dinh [Provided Data - US] ChiQuyen Dinh
[Provided Data - US] ChiQuyen Dinh
 
CIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docxCIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docx
 
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docxProduct Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
 
IST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docxIST365 - Project Deliverable #3Create the corresponding relation.docx
IST365 - Project Deliverable #3Create the corresponding relation.docx
 
Bis 245
Bis 245Bis 245
Bis 245
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docx
 
inventory management system
 inventory management system inventory management system
inventory management system
 
Inventory management system
Inventory management systemInventory management system
Inventory management system
 
Dynamics gp insights to manufacturing
Dynamics gp insights to manufacturingDynamics gp insights to manufacturing
Dynamics gp insights to manufacturing
 
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docxRunning Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
 
Supply Chain Management- MIS
Supply Chain Management- MISSupply Chain Management- MIS
Supply Chain Management- MIS
 
Microsoft access VBA communication with RS232 Peripherals
Microsoft access VBA  communication with RS232 PeripheralsMicrosoft access VBA  communication with RS232 Peripherals
Microsoft access VBA communication with RS232 Peripherals
 
20.project inventry management system
20.project inventry management system20.project inventry management system
20.project inventry management system
 
Tiki giftware shop database business information system
Tiki giftware shop database business information systemTiki giftware shop database business information system
Tiki giftware shop database business information system
 
8 Simple Rules for submitting your Vendor Documents
8 Simple Rules for submitting your Vendor Documents8 Simple Rules for submitting your Vendor Documents
8 Simple Rules for submitting your Vendor Documents
 
Coit11237 assignment 2 specifications
Coit11237 assignment 2 specificationsCoit11237 assignment 2 specifications
Coit11237 assignment 2 specifications
 
Technology & Innovation - User Experience in Business Database Systems
Technology & Innovation - User Experience in Business Database SystemsTechnology & Innovation - User Experience in Business Database Systems
Technology & Innovation - User Experience in Business Database Systems
 
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docxCIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
 
Relational Database
Relational DatabaseRelational Database
Relational Database
 
Unit 33 Assign 1 Final
Unit 33 Assign 1 FinalUnit 33 Assign 1 Final
Unit 33 Assign 1 Final
 

Recently uploaded

The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 

Recently uploaded (20)

The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 

Question 5 - 2k15 Exam Preparation Day

  • 1. Exam Preparation Day QUESTION 5 – RELATIONAL DATABASE MANAGEMENT SYSTEMS
  • 2. a. (i) Identify one issue with storing the data in a single table, as shown above.
  • 3. a. (i) Identify one issue with storing the data in a single table, as shown above. - Repetitive data wastes disk space. Costs money. - Repetitive data is time consuming to type. Wastes employees’ time, costs money. Inefficient. - Repetitive data entry / typing may result in errors. Results from queries / outputs may be inaccurate. Unreliable.
  • 4. a. (ii) Explain how a relational database can resolve the issue you identified in part (a)(i).
  • 5. a. (ii) Explain how a relational database can resolve the issue you identified in part (a)(i). - By normalising data into source tables, in this case into Customer (or Business) and Product (or Drinks), the amount of initial data entry is reduced. The benefits include reduced disk space, accuracy, ease of data entry.
  • 6. b. (i) Discuss the effect of having Customer ID (C_ID) and Product ID (P_ID) as composite keys in Items Table.
  • 7. b. (i) Discuss the effect of having Customer ID (C_ID) and Product ID (P_ID) as composite keys in Items Table. - This would not be an ideal composite foreign key because any combination of Product and Customer could only occur once. This would have the effect of, for example, Freed’s Drinks only being able to purchase 24 Coke Cans on one occasion.
  • 8. b. (ii) Discuss the effect of having Customer ID (C_ID) and Date (I_Date) as composite keys in Items Table.
  • 9. b. (ii) Discuss the effect of having Customer ID (C_ID) and Date (I_Date) as composite keys in Items Table. - This would not be an ideal composite foreign key because any combination of Product and Date could only occur once. This would have the effect of, for example, Freed’s Drinks only being able to purchase one product on Friday October.
  • 10. b. (iii) Discuss an appropriate composite keys for the Items Table.
  • 11. b. (iii) Discuss an appropriate composite keys for the Items Table. - C_ID, IP_TS (item purchase Time / Date Stamp)…? CHECK THIS
  • 12. c. (i) Two of the entities in the database are ‘Customers’ and ‘Products’. Explain the relationship between these two entities.
  • 13. c. (i) Two of the entities in the database are ‘Customers’ and ‘Products’. Explain the relationship between these two entities. - One customer can purchase Many item types. One item type can be purchased by Many customers. The relationship is therefore Many to Many and can be resolved by including a transaction table with foreign keys from each source table.
  • 14. c. (ii) Complete the diagram above to include the Table Relationships.
  • 15. c. (ii) Complete the diagram above to include the Table Relationships.
  • 16. c. (iii) Explain the table relationship between ‘Customers’ and ‘Products’ in the context of this table relationship diagram from part (ii)
  • 17. c. (iii) Explain the table relationship between ‘Customers’ and ‘Products’ in the context of this table relationship diagram from part (ii) It’s still a many to many relationship, but it’s been resolved by the inclusion of the Items table, with a sub-form / portal into this via the Invoice table to include multiple purchases at any given time. CHECK THIS, unsure what’s being asked.
  • 18. c. again Design an appropriate query that will output this information.
  • 19. c. again Design an appropriate query that will output this information. SELECT P_ID P_Name P_CostPrice Quantity I_Date FROM Products Products Products Items Invoice WHERE No query, all items sorted SORTBY or ORDERBY Quantity, descending STOPAT 1 (for most popular product) 3 (for top three products) **NOTE: Assumes Quantity is a summary field that totals all for a given P_ID. If not, may need an additional field.
  • 20. d. Discuss how the database for Big Drink Supplies could be expanded to automate the ordering system and reduce user error.
  • 21. d. Discuss how the database for Big Drink Supplies could be expanded to automate the ordering system and reduce user error. Repeating weekly / monthly automated orders. Script is run to email is sent to customers seven days prior to order being processed. Order details generated from DB based on previous (or first) orders. If nothing is done by the processing date, order proceeds. If there’s a problem, customer can login and alter details themselves via a web interface to the database (bypassing data entry by an employee, eliminating errors when transcribing e.g. from phone calls or email). Whenever data is entered, a pop up or summary of the order is shown to the user to ensure that the entered data is correct prior to the order proceeding and funds being withdrawn.
  • 22. e. Explain the recommended practices that a database developer will need to implement to ensure that customer’ personal information is not disclosed to unauthorised clerical staff.
  • 23. e. Explain the recommended practices that a database developer will need to implement to ensure that customer’ personal information is not disclosed to unauthorised clerical staff. - Login details (username and password) on computer and database start up. User groups / permissions prevent clerical staff from accessing certain information. - Local encryption of working copies of data. - Viewing of clients’ data will have visible data obfuscated. - Emails, physical paper etc. with customer details are destroyed once data is entered. - Onsite and offsite backups are secured / encrypted.