basic many-to-many sql select query

后端 未结 9 1884
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-17 03:06

I think this should be easy, but it\'s evading me. I\'ve got a many-to-many relationship between Accounts and Account Groups. An Account can be in zero or more Groups, so I\

9条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-17 03:44

    Yeah, I'll use the presentation layer for the NULL.

    But I must be missing something. I'm getting the same error from yours as from my original attempts:

    Syntax error (missing operator) in query expression '(act.id = jag.aid) 
                      LEFT OUTER JOIN accountgroups gp ON (jag.gid = gp.id)'
    

提交回复
热议问题