เมื่อ query ด้วย
SELECT n.id,
n.nu_code,
n.intensity,
u.unit,
nd.so_name,
nd.intensity,
ut.unit
FROM nut n join nut_detail nd on n.id = nd.id
join unit_t u on n.unit_id = u.unit_id
join unit_t ut on nd.unit_id = ut.unit_id
SELECT n.id,
n.nu_code,
n.intensity,
u.unit,
nd.so_name,
nd.intensity i1,
ut.unit u1
FROM nut n join nut_detail nd on n.id = nd.id
join unit_t u on n.unit_id = u.unit_id
join unit_t ut on nd.unit_id = ut.unit_id