100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

ICT3722 Assignment 4 memo 20024

Rating
-
Sold
-
Pages
9
Uploaded on
25-07-2024
Written in
2023/2024

ICT3722 Assignment 4 memo 20024: Scenario: Batho Pele is a local NGO dedicated to providing support and care for old age pensioners in the community. The organisation struggles with keeping accurate records of its beneficiaries, including their personal information, health needs, medications, personalised exercises, diet preferences, allergies, sports activities, next-of-kin details, and more. As a database administrator for Batho Pele, your task is to design and implement a database system to efficiently manage and maintain these records. Assignment Tasks: • Design a relational database schema for Batho Pele NGO using the provided tables (See end of document). •Create the specified tables with appropriate attributes and relationships. •Populate the tables with sample data for testing and demonstration purposes as shown on the tables below. • Write SQL queries to perform the following tasks: oSelect all beneficiaries along with their personal information. oUpdate the medication dosage for a specific beneficiary. oDelete the record of a beneficiary who is no longer receiving services from Batho Pele. oSelect all beneficiaries who have allergies to a specific substance. oDrop the table containing exercise records (if deemed necessary). oUpdate the next of kin details for a beneficiary. oSelect all beneficiaries who participate in a specific sport. oDelete the record of a medication that is no longer prescribed to any beneficiary. oUpdate the diet preferences of a specific beneficiary. oSelect all beneficiaries who require personalized exercises. Assignment Questions: 1. Create ERD that shows the relationship between the 4 tables. (10 Marks) 2. Create the specified tables with appropriate attributes and data types, and relationships. (40 Marks) 33. Explain the importance of maintaining accurate records for old age pensioners in organizations like Batho Pele. (5 Marks) 4. Discuss the relationship between the Beneficiaries table and the Medications table in the database schema. (5 Marks) 5. Provide an SQL query to select all beneficiaries along with their personal information from the database. (5 Marks) 6. Explain the significance of using constraints in database design and how they are applied in the Batho Pele database. (5 Marks) 7. Write an SQL query to update the medication dosage for a beneficiary with the ID ‘1’. (5 Marks) 8. Discuss the potential challenges and ethical considerations in managing sensitive health information in a database system. (5 Marks) 9. Provide an SQL query to delete the record of a beneficiary with the ID ‘6’ from the database. (5 Marks) 10. Explain the concept of normalization and how it applies to the database schema of Batho Pele NGO. (5 Marks) 11. Discuss the benefits and limitations of using SQL for database management tasks in organizations like Batho Pele. (5 Marks)

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
July 25, 2024
Number of pages
9
Written in
2023/2024
Type
Other
Person
Unknown

Subjects

Content preview

Question1




Question 2
CREATE TABLE Beneficiaries(
BeneficiaryID NUMBER(3) PRIMARY KEY NOT NULL,
Name VARCHAR2(50) NOT NULL,
Age NUMBER(3) NOT NULL,
Gender VARCHAR2(10) NOT NULL,
Address VARCHAR2(100) NOT NULL,
ContactNumber VARCHAR2(12) NOT NULL,
NextOfKinID NUMBER(3) NOT NULL
);


INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (1, 'John Doe', 75, 'Male', '123 Main Street', '555-123-
4567', 101);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (2, 'Jane Smith', 80, 'Female', '456 Elm Avenue', '555-987-
6543', 102);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (3, 'Michael Lee', 70, 'Male', '789 Oak Street', '555-321-
7890', 103);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)

, VALUES (4, 'Mary Brown', 85, 'Female', '101 Pine Road', '555-456-
7890', 104);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (5, 'David Clark', 78, 'Male', '202 Cedar Lane', '555-789-
0123', 105);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (6, 'Sarah Taylor', 82, 'Female', '303 Maple Drive', '555-
345-6789', 106);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (7, 'James Wilson', 75, 'Male', '404 Birch Street', '555-
678-9012', 107);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (8, 'Linda Martinez', 77, 'Female', '505 Oakwood Blvd',
'555-890-1234', 108);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (9, 'Robert Nguyen', 73, 'Male', '606 Walnut Avenue', '555-
234-5678', 109);

INSERT INTO Beneficiaries (BeneficiaryID, Name, Age, Gender,
Address, ContactNumber, NextOfKinID)
VALUES (10, 'Emily Harris', 79, 'Female', '707 Pinehurst Lane',
'555-456-7890', 110);

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
foxNotes Acsess Business Academy
Follow You need to be logged in order to follow users or courses
Sold
112
Member since
2 year
Number of followers
63
Documents
35
Last sold
1 month ago
saveNotes

5.0

5 reviews

5
5
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions