Pergunta de entrevista da empresa Amazon

Write an inner join between two tables.

Respostas da entrevista

Sigiloso

24 de mai. de 2012

MS-SQL lets assume two tables - City and State each having common column called population here is the join on population field Select * from City Inner join State ON city.population = state.population Done :-)

6

Sigiloso

17 de jun. de 2012

another answer. select * from table_A a, table_B a where a.population = b.population; pick one old or new school :-)

2

Sigiloso

24 de mai. de 2012

MS-SQL lets assume two tables - City and State each having common column called population here is the join on population field Select * from City Inner join State ON city.population = state.population Done :-)

1