Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

table [ [ EXISTING _ CUSTOMER ] , [ Customer _ ID ] , [ Customer _ FirstName ] , [ Customer _ LastName

\table[[EXISTING_CUSTOMER],[Customer_ID],[Customer_FirstName],[Customer_LastName],[Address_1],[Address_2],[City],[State],[Zip],[Country]]
You may have heard about the address matching exercise. For example: A company has a customer database which includes all existing customers' information. We would like to determine the number of existing customers by State from daily transaction records. i.e. the number of existing customers who made the purchases(s) recently from daily transactions and as result, we will be able to determine the number of repetitive customers.
You need to write a SQL that compares the addresses (TRANSACTION) to the address attributes of a reference dataset (EXISTING_CUSTOMER) to determine whether the first 20 characters of a particular address (from the TRANSACTION table) would be the same as an address of the existing customer address (from the EXISTING_CUSTOMER table). You may also need to consider additional attributes which improve the accuracy of the address matching.
(15 points)
image text in transcribed

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

Recommended Textbook for

Mastering Big Data Interview 751 Comprehensive Questions And Expert Answers

Authors: Mr Bhanu Pratap Mahato

1st Edition

B0CLNT3NVD, 979-8865047216

More Books

Students also viewed these Databases questions