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:
BRANCHbranchname, City, Assets
ACCOUNTaccountnumber, CSSN branchname, balance, accounttype, interestrate, overdraft,
BSSN
CUSTOMERCSSN firstname, lastname, address
CUSTOMERACCOUNTCSSN accountnumber, date
TRANSACTIONINSTANCEtransactioncode, transactionnumber, accountnumber, date, time,
amount TRANSACTIONtransactioncode, transactiontype, description, charge
BANKERBSSN firstname, lastname, address, startdate, 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
List the accounts with no transaction since September st
for
these
List customers CSSN firstname, lastname of the Broad Street branch.
queries.
List customers CSSN firstname, lastname who have an account in Newark one or
more accounts
List customers CSSN first name, lastname who have no account in Newark.
List customers CSSN firstname, lastname who have accounts in every branch in
Newark.
List customers CSSN firstname, lastname who have more than one account in the
NJIT branch.
List the name of the employee who has the maximum number of customers in charge.
List for each account the number of transactions made since September st
List the average number of transactions per day since September st
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
