Shertson to New Communities • 1 year agoSQL - any and all dialects and versionsexternal-linkmessage-square1arrow-up18arrow-down10file-text
arrow-up18arrow-down1external-linkSQL - any and all dialects and versionsShertson to New Communities • 1 year agomessage-square1file-text
minus-square@Little8Lostlink3•edit-21 year agoyou can make: `SELECT table.name, table2.conditionOrSomething, table3.anotherCondition FROM table LEFT JOIN table2 ON table.id1=table2.id1 OR NULL LEFT JOIN table3 ON table.id1=table3.id1 OR NULL GROUP BY table.id1; ` That way you can get responses like: “asdf”, NULL, NULL “asdf”, true, NULL “asdf”, false, 2 It is helpful to see if connected data exists or not
you can make:
`SELECT table.name, table2.conditionOrSomething, table3.anotherCondition
FROM table
LEFT JOIN table2 ON table.id1=table2.id1 OR NULL
LEFT JOIN table3 ON table.id1=table3.id1 OR NULL
GROUP BY table.id1; `
That way you can get responses like:
It is helpful to see if connected data exists or not