Central Lakes College Databases Questions
Question Description
I’m working on a databases multi-part question and need guidance to help me learn.
Unformatted Attachment Preview
All questions are based on following dataset:
customerid bankbalance date
c1
c1
c1
c1
c2
c2
c2
c2
c3
c3
c3
c3
$9,621.86
$10,132.91
$25,600.17
$37,762.52
$9,577.84
$7,448.38
$7,392.74
$4,010.90
$3,714.63
$291.32
$4,594.63
$2,411.88
1/1/2018
2/1/2018
3/1/2018
4/1/2018
1/1/2018
2/1/2018
3/1/2018
4/1/2018
1/1/2018
2/1/2018
3/1/2018
4/1/2018
This is a data from a bank which has many customers (c1, c2, c3`and bank records balance in their
checking account at the beginning of the month. Bankbalance column is account balance and date is the
date when the balance is recorded.
Q1. Write a query to show customerid, account balance, date of balance, average balance of the
customer and average balance of all customers over entire period.
Q2. Write a query to create a unique integer row id for each row (customerid and date of balance).
Q3. Write a query to rank each customeràmonth in terms of balance amount.
Q4. Write a query to show rolling 3 month average balance for each customer.
Q5. Write a query to show average balance for each customer. Hint: There will be three rows.
Q6. Write a query to show average balance for each month. Hint: there will be 4 rows.
Q7. Write a query to show the customer with maximum average balance.
Q8. Write a query to show customer with highest balance across all months.
Write SQL queries in a word document and submit as HW-5.docx.
Purchase answer to see full
attachment
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."