2009年2月24日

CRM中多张关联表join的报表

摘要: 用向导生成的原始报表只能包含两张关联的table,如果要显示多张关联的表的内容(三张以上),就得修改报表的DSMain数据源:sample code[代码]说明:比如A,B,C,D四张表有关联,A.a1 = B.b1,B.b2 = C.c2,C.c3 = D.d3,则可以select A.field1,B.field1,C.field1,D.field1 from A[inner/left out... 阅读全文

posted @ 2009-02-24 17:25 GavinGan 阅读(390) 评论(0) 推荐(0) 编辑

[转][SQL]表连接(JOIN)收藏

摘要: Student: Book: ID Name SID Book 1 feng 1 abc 2 yong null def [Inner] Join ID Name SID Book 1 feng 1 abc Left [Outer] Join: 左表所有行, 右表没有匹配行则均为null ID Name SID Book 1 feng 1 abc 2 yong null null Right [O... 阅读全文

posted @ 2009-02-24 10:25 GavinGan 阅读(1492) 评论(4) 推荐(0) 编辑

导航