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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -