Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Otro

ICT3722 Assignment 4 memo 20024

Puntuación
-
Vendido
-
Páginas
9
Subido en
25-07-2024
Escrito en
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)

Mostrar más Leer menos
Institución
Grado

Vista previa del contenido

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

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
25 de julio de 2024
Número de páginas
9
Escrito en
2023/2024
Tipo
OTRO
Personaje
Desconocido

Temas

$5.13
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
foxNotes Acsess Business Academy
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
113
Miembro desde
3 año
Número de seguidores
63
Documentos
36
Última venta
3 semanas hace
saveNotes

5.0

5 reseñas

5
5
4
0
3
0
2
0
1
0

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes