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