table1:
id , otherColumn, otherColumn2 ...
table2:
id, table1_id, someOtherColumns...
I.E. one to many relationships
A trivial join would be:
select * from table1 left outer join table2 on table2.table1_id=table1.id;
I want to do something different: for each row in table1, bring at most 1 row from table2, no matter which if there are several candidates. Just as I can limit the amount of results on a regular select
Is this possible? How?