Sie sind auf Seite 1von 4

Question 4

ABC Bank offers joint-account service for guardians, usually parents, to open an account with
their kids who are considered too young by law to open a bank account on their own.
Whenever a new joint-account is opened, the bank will issue a slip to the guardian. Below is a
sample of such a slip.

ABC Bank

Joint-Account Number: T-84-UA-9


Date: 7 May 2014

Guardian Deposit Amount: SGD5,000


Name: Tan Ah Kow Maturity Date: 6 May 2016
NRIC: S1234567Z
Address: 45 NTU Link
Mailing Address: 123 NUS Drive
Handphone: (65)91212121
Relationship to Child: Father

Child
Name: Tan Ah Meow
NRIC: T8888888W
Address (if different from Guardian):

Bank Officer 1
Name: Celine Dion
Staff ID: ABC-99-XY-0
Comments: Low Priority Account

Bank Officer 2
Name: James Tan
Staff ID: DEF-19-XY-1
Comments: Maintain minimum balance

You are tasked to design a relational database based on the slip. Make reasonable assumptions
when necessary to complete your design.

a) Draw an Entity-Relationship Diagram (ERD) for the joint-account database.


Bank Officer

Process Processed by

Opens Opens
Guardian Joint- Child
Opened by Account Opened by

b) Draw the corresponding database schema for the ERD that youve drawn, capturing
only the data shown in the slip.

BankOfficer[StaffID, Name]
Guardian[GuardianNRIC, Name, Address,MailingAddress, Handphone]
Child[ChildNRIC,Name,Address]
JointAccount[JointAccountNumber, GuardianNRIC, ChildNRIC, RelationshipToChild,
Date, DepositAmount,MaturityDate]
JointAccount-BankOfficer [JointAccountNumber, StaffID, Comments]
Question 5

You are in charge of the name list of a club. You compiled a name list based on various
sources and developed apps based on the name list that you have compiled.

One day you are given an official name list by the club which is supposed to be the same as
your compiled name list, but you cant be sure of the position of the names in the two lists. In
order to determine that both the official name list and your compiled name list are the same
including the position of the names in both the lists, you decided to run a check on the two
name lists using Excel.

A B C D
1 No. Name (Official Name List) Name (Your Compiled Name List) Check
2 1 ALVIN GOH YUAN SHENG ALVIN GOH YUAN SHENG
3 2 ARLENE VEANNA TANTRIADY ARLENE VEANNA TANTRIADY
4 3 BOO QING XIA LIM YAN YING
5 4 CATHERINE LOH YEE SZE CATHERINE LOH YEE SZE
6 5 CELINE WEE JIA YAN CELINE WEE JIA YAN
7 6 CHENG ZAI HUI CHENG ZAI HUI
8 7 CHERMAINE KOH LI XUE CHERMAINE KOH LI XUE
9 8 CHIN JIA XIN KUMARAN S/O JOTHIKUMAR
0 9 CHOW TAK CHUEN CHOW TAK CHUEN
11 10 CHUA KE SHENG CLEMENT CHUA KE SHENG CLEMENT
12 11 ERNEST NG SHANG EN ERNEST NG SHANG EN
13 12 FOO SHU XUAN EILEEN FOO SHU XUAN EILEEN
14 13 HASYNA NEO BINTE ADAM HASYNA NEO BINTE ADAM
SHAH SHAH
15 14 HO YI XIA TRICIA HO YI XIA TRICIA
16 15 HUANG JUNRU HUANG JUNRU
17 16 JOHN HAN ZHI'AN JOHN HAN ZHI'AN
18 17 KUMARAN S/O JOTHIKUMAR CHIN JIA XIN
19 18 LEE KIAN HWEE LEE KIAN HWEE
20 19 LIM HUI YEE LIM HUI YEE
21 20 LIM QINGHUANG LIM QINGHUANG
22 21 LIM YAN YING BOO QING XIA
Using only the functions IF, ISERROR, AND, COUNTIF, and MATCH, and giving the
Official Name List a named range of OFFICIAL_NAME_LIST (that starts at cell B2 and ends
at the last name in column B), write the formula in cell D2 that you can copy and paste
downwards in column D to complete the following tasks:

a) Display Yes if the name in Your Compiled Name List appears in the Official Name List
and No if it doesnt.

[ Answer=IF(ISERROR(MATCH(C2,OFFICIAL_NAME_LIST,0)),No,Yes) ]
b) If the name in Your Compiled Name List appears more than once in the Official Name List
then display Multiple. If the name in Your Compiled Name List appears only once in the
Official Name List, display 1. If it does not appear, display None.

[ Answer=
IF(COUNTIF(OFFICIAL_NAME_LIST,C2)>1,"Multiple",IF(COUNTIF(OFFICIA
L_NAME_LIST,C2)=1,"1","None"))]

c) If the name in Your Compiled Name List is in the same position as the name in the
Official Name List, display Same Position otherwise display Different Position.

[ Answer=IF(C2=B2,Same Position,Different Position) ] or [


=IF(MATCH(C2,OFFICIAL_NAME_LIST,0)=A2,Same Position,Different
Position) ]

d) If the name in Your Compiled Name List appears only once in the Official Name List
and is in the same position as the Official Name List, display Exact else display Not
Exact.

[ Answer=
IF(AND(COUNTIF(OFFICIAL_NAME_LIST,C2)=1,C2=B2),Exact,Not Exact) ]

Das könnte Ihnen auch gefallen