How to get multiple records against one record based on relation?

前端 未结 8 820
遇见更好的自我
遇见更好的自我 2020-11-29 09:11

I have two tables Organisation and Employee having one to many relation i.e one organisation can have multiple employees. Now I want to select all information of a particula

8条回答
  •  生来不讨喜
    2020-11-29 09:13

    It all depends. If you do a join, you get all the organization data on every row. (1 row per employee). That has a cost. If you do two queries. (Org and Emp) that has a different cost.

    Pick your poison.

提交回复
热议问题