Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I NEED THE QUERIES NOT THE TABLE CREATION: 4. Get the name of the customer who banks in Royal or America bank. 13. Get the
I NEED THE QUERIES NOT THE TABLE CREATION:
4. Get the name of the customer who banks in Royal or America bank.
13. Get the name of the customer who banks only in the banks that Clark banks.
14. Get the name of the customer, the number of banks he/she banks, and total balance he/she has.
15. Get the name of the customer who banks in more than two banks without using grouping and aggregate function.
Part 1. SQL Queries (90 marks) Your Lastname Use Oracle-VM SQL Data Definition Language to create the following Bank-and-Customer database. You should properly define primary keys and foreign keys and then use SQL Query Language to express the following queries. In the document that you submit, you should have the question with its number, SQL query, and query result generated by Oracle-VM for each question. Each query is 3 marks and the result is 0 Account CHBA Balance B# N B1 England London B2 America New York B3 Roval Toronto B4 France Paris ameCit CI BI 1000 CI B2 2000 C1 B33000 C B4 4000 C2 B1 2000 Customer C2 B23000 Name C3 B23000 C Adams20 LondonB3 4000 3Clark 25 ParisB3 500 Blake 30 Paris C4 B24000 C4 B35000 C4 Your Lastname 20 London 30 Toronto
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started