2017年11月17日

无序号的排序函数

摘要: create or replace function Proleg_seqnum(current_uuid varchar2) return number is preuuid varchar2(36); begin select PRV_LEG_ID into preuuid from TERMI 阅读全文

posted @ 2017-11-17 16:34 mol1995 阅读(145) 评论(0) 推荐(0) 编辑

left join的多重串联与groupby

摘要: 有三张表或组合查询,f1,f2,f3,其中,f1分别与f2,f3是一对多关系,f1一条记录可能对应f2或f3中0条或多条记录 要创建一个查询,以f1为基准,即f1中有多少条记录,结果也就返回对应数量的记录,并整合f2,f3中的相应信息 此时需要创建两个left join 串接并加上group by如 阅读全文

posted @ 2017-11-17 16:12 mol1995 阅读(8950) 评论(0) 推荐(0) 编辑

导航