Professional Documents
Culture Documents
1. Create the above tables by properly specifying the primary and foreign keys
Ans:
ASSETS REAL
);
BALANCE REAL
);
);
);
);
LOAN_NUMBER INT,
);
2.Enter 3 tuples for Branch, borrower and 5 tuples for account, customer, depositor and loan
relation.
Ans:
(ACCNO,BRANCH_NAME,BALANCE)
VALUES('1002','Puia','ZARKAWT','AIZAWL');
VALUES('1004','Liana','MUAL VENG','SERCHIP');
VALUES('1005','Zuali','CHANMARI S','LUNGLEI');
INSERT INTO DEPOSITOR VALUES('1001','1111');
VALUES('1002','1112');
VALUES('1003','1113');
VALUES('1004','1114');
VALUES('1005','1115');
INSERT INTO LOAN
Ans.
4. Find all the customers who have an account at all the branches located in a specified city(any
city)
Ans:
Ans:
AND C.CUSTOMER_NO=D.CUSTOMER_NO
AND B.CUSTOMER_NO=C.CUSTOMER_NO;
7. Fine the lowest and highest balance in account table.
Ans:
8.Find the customer Sanjit(any name-Tea)Take loan from the Noida(any branch-Aizawl)branch.
Ans: