Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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, payment date and payment amount from the tables customer_test and payment_test. Where the records from latest payment to be on top (first result).
Expected Result
payment_amount customer_last_name payment_date customer_first_name
1250 Smith 2005-12-20 Peter
1000 Smith 2005-11-20 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions