Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

University of the Punjab

Quaid-e-Azam Campus, Lahore


Sheet No.

Assignment 03 ~ Relational Model


Spring Term 2021
Code: IT-261 Degree: BSCS
Title: Relational Database Management System Batch: F19-MB & AA
Due Date: Mon 19, 2021 before 1500Hr Marks: 60
Instructions:
1. Do not forget to pray before starting to attempt the paper. Trust me it helps.
Remember! SOMEONE is always with you (Be Relaxed), and HE is also watching you (Be Honest)
2. Question Paper is SELF EXPLANATORY. Understanding the Question Paper is part of Solution.
3. Nothing Beyond the Finish Line will be Evaluated. Back Side of Pages is Beyond Finish Line.
4. For Calculations etc. Use the back side of the pages.
5. Error in Question will be advantageous to Student.
6. Read the Questions carefully before attempting.
7. Solve your paper using Black/Blue Pen only.
8. Attempt All Questions in a Precise Fashion.
9. Switch Off your Cellular Phones.
10. Manage Your Time Wisely.

Good Luck
Roll No: Name:

Class:  Morning  Evening Date: Monday, April 12, 2021


Section:  A  B Signature:

Q 1. Q 2. Q 3. Q 4. Q 5. Q 6. Q 7. Q 8. Q 9. Q 10. Total
30 35 60

Invigilator’s Signature Examiner’s Signature


Roll No.: A03-F18-BBIT-MB & AA

Name: Relational Database Management System

Question No 01. 25
Keenly Read the Following Business Scenario
Introduction:
Raza Estate Consultants, owned by Mr. Abu Baker, is nationwide real estate consultants facilitating
property buyers, sellers and investors. REC has its offices nationwide, supervised by the head office in the
Lahore. Each Office has an Administrator, 2 or 3 Architects, 2 to 5 computer professionals, 2 to 5 video
makers, 3 to 10 Couriers, 1 or 2 office boys and 2 to 5 sanitary workers on payroll and a team of legal
advisors, a team of executives to materialize the deals, on commission basis.
REC has more than 5000 investors registered from the whole country and an average of 250,000 customers
visits REC offices per month to consult and take advise about buying or selling of properties. REC not only
deals in buying and selling of property but also deals in renting the commercial, industrial and agricultural
land on lease.
Scenario:
Sellers registered their properties categorized as offices, residential flats, homes, floors, complete plaza or
society with the location, dimensions, number of rooms and provisions and rent or price etc. REC nominates
the video maker to make videos of the vicinity to be uploaded on website for buyer’s preview. Seller must
provide the copies of relevant documents to ensure the authenticity and avoid any fraudulent activity.
Buyers provide their requirement in relevant category with desired specification and price range.
Administrator assigns an executive after getting basic information about the buyer’s requirements. A buyer
is registered/promoted as investor when either he/she finales at least 5 deals in 4 months or on securing a
business volume of 50Million in 4 months.
Investors must provide their NTN, copy of last tax return and latest one-year bank statement(s) to be
determine their gravity and ranking. Each investor is assigned to an executive based upon his city to provide
the best services. Investors rank (range from 1 to 100) is updated by one when he/she completes 5 deals in
one quarter or gives a business of 100Million. Investor attain a 5% cut on the commission amount if they
are in ranked above 75. Investors are updated with the available opportunities on daily and weekly basis
about based upon their interests like area, category, and investment through personal calls by the assigned
executive as well as WhatsApp and email.
REC has policy of charging a commission of 35% each from both parties in case of rent or lease deeds;
whereas commission of 1.25% from seller and 0.75% from buyer is charged on sale transactions. REC also
charges for legal services and documentation of agreement. REC shares the commission with its executives
on the relevant deals as per executive’s seniority level.
List the Real Word Data of Raza Real Estate. 10

April 2021 Page 2 of 6


Roll No.: A03-F18-BBIT-MB & AA

Name: Relational Database Management System

Draw the Relational Model for this Business Scenario 20

April 2021 Page 3 of 6


Roll No.: A03-F18-BBIT-MB & AA

Name: Relational Database Management System

Question No 02. 35
The Prescription Database
General Description
A local independent pharmacy now keeps manual records of the prescriptions. The pharmacy serves about
1000 patients, filling approximately 4000 prescriptions per year. There are four pharmacists: the owner
and three associates. They alternate shifts, with two working weekdays, one during the evening hour, and
one during the weekend.
Basic Operations
Patients normally come to the pharmacy in person with prescriptions from their physicians, dentists, or
other health practitioners. Most prescriptions can be refilled a specified number of times, as determined by
the physician, who writes the number on the original prescription. Any prescription marked “No Refills”
cannot be refilled, while one marked “Unlimited Refills” can be filled any number of times. Refill requests
are often telephoned in by the patient, to be delivered or picked up later. At present, patients must provide
the prescription number, but your design should require only the patients name and a general description
such as date or drug name. The pharmacy has to take special care when filling prescriptions of controlled
substances such as tranquilizers. To prevent abuse, periodic reports about the number of such prescriptions
are required by various government agencies. Prescriptions for controlled substances can never be refilled.
When a prescription is filled, a label and a receipt are printed. The label is attached to the bottle or other
container, and the receipt is given to the patient for insurance or tax reporting purpose. To permit third
party billing, the pharmacist must keep track of all prescriptions filled for patients who have health plans
or coverage for prescription drugs, so that the insurance company can be billed directly. Some plans
require that the patient pay the pharmacy a flat fee for each prescription (typically Re. 100), others require
that the patient pay 20 percent of the cost, while others require no payment. The pharmacy must obtain the
customers signature at the time the drug is issued, so that it can provide proof, if needed, that the drug was
actually used. However the signature is kept in a manual ledger, outside the purposed database.
Information Required
The burden of maintaining the manual system is increasing, because the number of prescriptions is
growing, and because customers expect more services than in the past. For example, customer expect the
pharmacist to be able to find a prescription record and refill a prescription without providing the
prescription number, to do third party billing, and to check for possible drug interactions with medications
they are now taking before filling a prescription. Families and individuals expect to be able to obtain a
detailed annual or on-demand report of prescription changes for tax or insurance reporting. To compete
with large chains that offer these services, the owner has decided to hire you to design and create a
database system that replaces the manual one and provides support for these new services.
The database must print several routine reports:
1. Label: Rx Number, Doctor Name, Patient Name, Patient Address, Directions, Drug Name, Form, Strength,
Quantity, Pharmacists Initials, Date Filled, Original Date, Previous Date, Number of Refills Remaining.
The Rx Number is issued sequentially by the system. If the prescription is a refill, the Rx Number for
the original prescription is used. There are several standard directions, such as “Four times a day”
or “Every 6 Hours”. If the directions are not one of the standard phrases, the label reads “As Directed
by the physician”. Drug name is the name of medication. It may be a brand name or a generic name,
depending on which is used in filling the prescription. Medications come in several forms, including
tablets, capsules, cream, elixirs, and others. The label tells the quantity of medication which varies
with the form (e.g. for capsules or tablets it is the number, but for elixirs it may the number of fluid
ounces). The strength of the medications is also given, usually in milligrams. The initials of the
pharmacist who actually fills the prescription are included. Date filled refers to the actual date issued.
Original date is the date of original prescription, and the previous date is the date of the present one.
Number of refills remaining is decreased by one every time a refill is made, except when unlimited
refills are permitted.
April 2021 Page 4 of 6
Roll No.: A03-F18-BBIT-MB & AA

Name: Relational Database Management System

2. Receipt
All the information on the label, along with Price, Amount Due.
Here Price is the entire cost of the prescription, while Amount Due is what the patient should pay the
drugstore. For the patients who do not use third party billing, these are identical. For those using third
party billing, Amount Due is Price minus the anticipated insurance payment.
3. Insurance Claim
A universal claim form is used for the third-party billing. It contains the following information:
Patient Name, Patient Address, Insurance Company, Policy Number, Insured Name, Relationship to
insured, Patient Date of Birth, Rx Number, Drug, Form Strength, Quantity, Date Filled, Price, Amount Paid.
Amount Paid here is the same as the Amount Due on the receipt. Insured Name may be different from
the Patient Name. For Example, a child might have coverage under a parent’s Policy. A claim could
be filed for each covered prescription individually, or the pharmacist could submit the claims in
batches at the end of each week or other period.
4. Family Report: This report, generated as needed, contain the following information: Report Date,
Starting Date. For each member of the family, it has Last Name, First Name, Patient Address, and Date of
Birth. For each prescription for that family member, it lists Rx Number, Date, Drug, Form Strength, Quantity,
Date Filled, Price, and Amount Paid.
The report lists each family member who had prescription filled during the period from the Starting
Date to the Report Date. For each member, it list the information about every prescription filled during
the period.
5. Controlled Substances Report: This report is filed monthly or quarterly with agencies that supervise
distribution of controlled substances. It contains Report date, Starting Date. For each physician who has
writing prescription for controlled substances it shows Physician Name, Physician Address. For each
Prescription from that Physician, it lists Rx Number, Patient Name, Patient Address, Drug, Form, Strength,
Quantity, and Date Filled.
The report is order by the Physician Name and lists information about every prescription for controlled
substances written by that Physician and filled by the pharmacy.
6. Drug Inventory Report: Drug Name, Generic Name, Form, Strength, Controlled Substances, Quantity
on Hand, Quantity on Order, Reorder Point, Supplier Name, Supplier Address, Unit Cost.
List the Real World Data of Raza Real Estate. 10

April 2021 Page 5 of 6


Roll No.: A03-F18-BBIT-MB & AA

Name: Relational Database Management System

Draw the Relational Model for this Business Scenario 20

Finish Line
Nothing beyond this line will be evaluated

April 2021 Page 6 of 6

You might also like