Question: You need to create an application to access the MySQL server and its sakila database. Read information from the customer table and the address table,

You need to create an application to access the MySQL server and its sakila database. Read
information from the customer table and the address table, display the result records accordingly.
Please note that the customer table and address table are linked (referenced) via the address_id
key fields in both tables.
The following five fields should be selected from the customer table: first name, last name,
email, active, and create date;
The following four fields should be selected from the address table: address, district, postal code,
and phone.
You need to allow users to search customers with the last name (the field from the customer
table) and postal code (the field from the address table). You receive the last name AND postal
code as the search criteria, and the search results will appear automatically.
Please note: 1) your output records should be consistently the same no matter they are displayed
for the first time when the form is loaded or when users conduct any search lately; 2) do NOT
include the location field in your query result as this geometry field can cause errors. 3) if you
search for a customer whose last starts with "hu" and postal code starts with "4", then you should
keep both the search criteria. The bottom line is that your search results should match the search
criteria you put in the textboxes.

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!