0% found this document useful (0 votes)
26 views11 pages

Ids 521 HW 3

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views11 pages

Ids 521 HW 3

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

IDS 521

ADVANCED DATABASE MANAGEMENT


SYSTEMS
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:-

Data Data Type Values Primary


(Range)/Length Key
Branch_id int Primary key

Location varchar 20

Branch_name varchar 20

EmpID int Primary Key

Emp_Name varchar 20 -
Emp_Number varchar 20
Emp_Email varchar 20

Emp_Address varchar 20

Manager_id int Primary key

Manager_Name char 20

Manager_Number varchar 20

Manager_Email varchar 20

Salary varchar 20

Trans_id int Primary Key

Acc_no int Primary Key

Amount varchar 20

Date_of_trans varchar 20

Acc_no int
Acc_routing_number Int

Interest Rate Varchar 20

Extra Charges Varchar 20

Save_Interest_Rate Varchar 20

Acc Types Varchar 20

Customer_id int Primary Key

Loan_id int Primary Key

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?

A view is a virtual table that is based on the output of a database query


in the context of the database.
By removing some of the specifics of the underlying tables,
views enable you to simplify complex queries and improve their readabil
ity.
To access and retrieve data from one or more tables in the
database, you may use views essentially as predetermined queries.

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.

SELECT * FROM view_name;

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:

➢ Meetings to be scheduled for regular follow ups and to check


progress by identifying issues and to track the project every week.

➢ Team members should adhere to timelines and avoid any last-


minute submission.

➢ Task assignment will be done as per individual strength of area

➢ One person will be assigned to log all activities of team members


for the submission

➢ Team members should respect each other's opinion and


communicate efficiently.

➢ Any information regarding the project to be discussed in the group


so everyone is on the same page.
Meeting Logs:

DATE MODE DISCUSSION

03/06/2023 Online Discussion of which HW-1 to take

03/07/2023 Online Dividing the Tasks

03/08/2023 Online Working on the queries

03/11/2023 Online PPT editing

03/12/2023 Online Final check

You might also like