Ids 521 HW 3
Ids 521 HW 3
NAME: UIN:
MANO TEJA YANAMANDALA 663766823
PRANAV WALAVALKAR 669804865
SIDNEY WARDEN 660687718
Business Rules:
1) A Bank account is used for money transactions which include
transaction types like deposit, withdraw, transfer, online
transactions, cheque deposits, receiving loans, paying bills, business
transactions, and fixed deposits.
2) A bank will have many employees.
3) The bank account consists of different types such as Checking,
Savings, Money Market accounts, and Loan accounts.
4) One customer may have multiple types of bank accounts.
5) Transactions include deposit, Withdraw, Cheque deposit, Online
transactions, and Sender/Receiver details.
6) One customer may make multiple Bank Transactions.
7) One customer may make multiple Online transactions.
8) The Bank transaction made by customer must be received by the
receiver if he transfers/deposits money to receiver.
9) One customer with checking account can do multiple bank
transactions.
10) One customer with checking account can do multiple bank
transactions.
11) One customer with savings account does multiple bank
transactions.
12) A customer with money market account can do multiple bank
transactions.
13) One customer with loan account does multiple loan
transactions.
14) Many accounts are owned by many customers.
Entities:
- Bank
- Customer
- Account
- Checking account
- Savings account
- Money Market account
- Loan account
- Employee
- Transactions
- Manager
Attributes:
⮚ Bank (Branch_ID, Location, Branch_name)
⮚ Customer (Cust_ID, Cust_Name, Cust_Email, Cust_Address, Cust_Acc_type,
Cust_Acc_No)
⮚ Account (Acc_No, Cust_ID, Acc_Type)
⮚ Checking account (Acc_No, Name, Balance)
⮚ Savings Account (Acc_No, Acc_Routing_Num, Save_Interest rate)
⮚ Money Market Account (Acc_No, Acc_Routing_Num,
Acc_transactions, MM_Interest_Rate, Extra Charges)
⮚ Loan Account (Loan_ID, Acc_No, Loan_Interest_Rate,
Collateral_Details)
⮚ Employee (EmpID, Emp_Name, Emp _Address, Emp_Number,
Emp_Email)
⮚ Transactions (Trans_ID, Acc_No, Amount, Date_Of_Transaction)
⮚ Manager (Manager_ID, Manager_Name, Salary, Manager_Number,
Manager_Email)
Metadata:-
Location varchar 20
Branch_name varchar 20
Emp_Name varchar 20 -
Emp_Number varchar 20
Emp_Email varchar 20
Emp_Address varchar 20
Manager_Name char 20
Manager_Number varchar 20
Manager_Email varchar 20
Salary varchar 20
Amount varchar 20
Date_of_trans varchar 20
Acc_no int
Acc_routing_number Int
Save_Interest_Rate Varchar 20
Loan_interest_rate varchar 20
Collateral_Details varchar 20
Cust_Name varchar 20
Cust_Num varchar 20
Cust_Email_ID varchar 20
Cust_Acc_type varchar 20
Cust_Acc_num varchar 20
Cust_Address varchar 20
Relationships: -
∙ An account owner/customer may make one or more transactions.
∙ An account owner/customer may make one or more bank
transactions. ∙ The bank transfer made by customer is received by the
receiver. ∙ The transfer made by the customer will be received by the
receiver with a transaction ID.
∙ A bank consists of many accounts.
∙ Many customers consist of many accounts.
EER Diagram:
Relational Schema:
What is a view? How to use it in MS SS?
In Microsoft SQL Server (MS SS), you can create views using SQL syntax.
Here's a general format for creating a view in MS SS:
CREATE VIEW AS
SELECT column1, column2, ...
FROM table_name
WHERE condition;
Here, view_name is the name of the view you want to create, and
table_name is the name of the table (or tables) on which you want to base
the view. You can also include a WHERE clause to filter the data in the
view based on certain conditions.
This will pull up every piece of information from the view you made. The
view may also be used in more intricate queries that use joins, numerous
tables, and other SQL procedures. When you utilize views, your code
becomes more modular and simpler to maintain since complicated logic
may be included in a single view and then reused in several queries.
Group Policies: