Question: Please post code and output code done in SQL Suppose we have a part of a Bank database schema consisting of the relations ( the

Please post code and output code done in SQL
Suppose we have a part of a Bank database schema consisting of the relations (the keys are in bold and
underlined):
BRANCH(branch_name, City, Assets)
ACCOUNT(account_number, C_SSN, branch_name, balance, account_type, interest_rate, overdraft,
B_SSN)
CUSTOMER(C_SSN, first_name, last_name, address)
CUSTOMER_ACCOUNT(C_SSN, account_number, date)
TRANSACTION_INSTANCE(transaction_code, transaction_number, account_number, date, time,
amount) TRANSACTION(transaction_code, transaction_type, description, charge)
BANKER(B_SSN, first_name, last_name, address, start_date, phone, manager SSN)
Express the following queries in SQL.
Create a small database using any DBMS you know and populate the database with enough data for you to be able to run the queries and show answers.
You will have to submit the answers to thequeries and the resultt obtained
1. List the accounts with no transaction since September 1st 2024.
for
these
2. List customers (C_SSN, first_name, last_name) of the Broad Street branch.
queries.
3. List customers (C_SSN, first_name, last_name) who have an account in Newark (one or
more accounts).
4. List customers (C_SSN, first name, last_name) who have no account in Newark.
5. List customers (C_SSN, first_name, last_name) who have accounts in every branch in
Newark.
6. List customers (C_SSN, first_name, last_name) who have more than one account in the
NJIT branch.
7. List the name of the employee who has the maximum number of customers in charge.
8. List for each account the number of transactions made since September 1st 2024.
9. List the average number of transactions per day since September 1st 2024.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!