Combine Two Tables, for this simple mysql case, is there any fast solution? -


is there faster solution case? thinks 21.89% fast enough.

select firstname, lastname, city, state person left join address on person.personid = address.personid; 

table: person

+-------------+---------+ | column name | type | +-------------+---------+ | personid | int | | firstname | varchar | | lastname | varchar | +-------------+---------+ personid primary key column table. table: address

+-------------+---------+ | column name | type | +-------------+---------+ | addressid | int | | personid | int | | city | varchar | | state | varchar | +-------------+---------+ addressid primary key column table.

write sql query report provides following information each person in person table, regardless if there address each of people:

firstname, lastname, city, state

enter image description here


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -