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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -