Question: Table: customer _ test customer _ id customer _ first _ name customer _ last _ name 1 Johnny Walker 2 Amber Rose Table: account

Table: customer_test
customer_id customer_first_name customer_last_name
1 Johnny Walker
2 Amber Rose
Table: account_test
account_id bill_amount customer_id
1 Corporate 1
Table: payment_test
payment_id payment_amount payment_date account_id
11002005-05-101
21252005-06-201
Table: bill_test
bill_id bill_amount account_id bill_date
110012005-05-10
212512005-06-10
based on table above,Write a query to display first name, last name, total bill amount, and total payment amount from tables customer_test,payment_test and bill_test. You are expected to use sql sum and group by functions.
Expected Result
total_payment_amount total_bill_amount customer_last_name customer_first_name
255255 Smith PeterThe table here is just an example of how your answer is expected. You use this as a reference only!

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 Databases Questions!