Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Overig

ICT3722 Assignment 4 memo 20024

Beoordeling
-
Verkocht
-
Pagina's
9
Geüpload op
25-07-2024
Geschreven 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)

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

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);

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
25 juli 2024
Aantal pagina's
9
Geschreven in
2023/2024
Type
OVERIG
Persoon
Onbekend

Onderwerpen

€4,45
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
foxNotes Acsess Business Academy
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
113
Lid sinds
3 jaar
Aantal volgers
63
Documenten
36
Laatst verkocht
3 weken geleden
saveNotes

5,0

5 beoordelingen

5
5
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen