When search multiple tables, we join they with the connection of their keys.
Ex: What is the location of for account #1? SELECT
city from branch JOIN account ON branch.name = account.branch WHERE account.number = 1
Project
Phase1: Write
static html pages with functionalities and draw a diagram for the pages Schedule demo and send the zip file to your TA Deadline extend to Friday before your demo
Example: Order pizza
Project
Diagram Register
Index.html login
order
Register register.html
login.html
Login
main.html submit
Order_success
backup
Primary key
customer=(customer_id, customer_name, customer_addr) Two
rows t1, t2 in the customer table If t1.customer_id = t2.customer_id.
then t1.customer_name = t1.customer_name AND t1.customer_addr = t2.customer_addr
Foreign key
Foreign key identifies a column or a set of columns in one (referencing) table that refers to a column or set of columns in another (referenced) table. The values in one row of the referencing columns must occur in a single row in the referenced table Example customer=(customer_id,
customer_name,
customer_addr) borrower=(customer_id, loan_number) borrower.customer_id must exist in customer