Given the following two tables:
Person table
id (pk)
first
middle
last
age
Address table
id(pk)
person_id (fk person.id)
street
city
state
zip
How do I create an SQL statement that returns all information for people with zip code 97229?
Or you must TRY using
JOINwhich is a more efficient and better way to do this as Gordon Linoff in the comments below also says that you need to learn this.Here
p.*means it will show all the columns of PERSONS table.