04 May Sql developers only
The “Big Bank” banking organisation has a database as described below:
Customer(ID, firstName, lastName, address, email, phone, dateOfBirth) Account(accNumber, balance, type)
Branch(BSB, phone, streetAddress, town)
Employee(employeeID, firstName, lastName, address, phone, TFN, dateOfBirth) has(ID*, accNumber*)
registered(accNumber*, BSB*) worksAt(employeeID*, BSB*, occupation)
- Primary keys are underlined and foreign keys are denoted with asterisks (*).
- A customer can have more than one account and an account can be jointly owned by more than one customer.
- An employee can only work at one branch.
- All accounts must be registered with one branch.
Hardcoding of identifiers not given in the question is not permitted and will incur a penalty for the question. Only use the information provided in each question.
-
- How many accounts are of type ‘cheque’? (Hint: The result of your query should produce a number, not a list of records)
List all employees currently working as a ‘teller’ that have a lowercase ‘v’ or uppercase ‘V’ somewhere in their first or last name. Display the first and last names only.
Provide a list of customers who are aged over 65 and whose balance on any single account exceeds 5000 dollars. The list must appear in alphabetical order of last name then first name. If a customer has more than one account with over $5000 only include their name once in this list. Display the first and last names only.
List the account numbers of accounts registered with the branch identified by the BSB number 713694 in Mooroolbark.
Which branch holds the most money? (Hint: The result of your query should produce details of one branch only, not a list of branches) Display all details of this branch.
Do not use the SQL keyword ‘ROWNUM’ or ‘LIMIT’ to artificially find the bank with the most money. This will give you one result, but it is possible that more than one bank could have an equal amount of funds stored in it.
-
- Which branch employs ‘Tristan Edwards’? (do not hardcode his employee ID into your query). Display the BSB and town of this branch.
Make sure your query performs one test that checks for upper and lower case versions of the employee’s name.
e.g. ‘TRISTAN EDWARDS’, ‘Tristan Edwards’, ‘tristan edwards’ or even ‘TrIsTaN eDwArDs’.
- List any employee that has not been designated an occupation as yet. Display the first and last names only.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
