on 2013 Sep 12 1:23 PM
WITH RECURSIVE PS ( product_code,description,parent_id,customer_id,short_name,quantity) as (select product_code,description,parent_id,'ID' D,'Sname' E,F=1*1 from product_code where parent_id='CP' union all select b.product_code,b.description,b.parent_id,cu.customer_id,cu.short_name,shl.quantity from ((((ps p join product_code b on p.product_code=b.parent_id ) join part s on b.product_code=s.product_code) join shipper_line shl on s.part_id=shl.part_id) join shipper sh on shl.trans_no=sh.trans_no) join customer cu on sh.customer_id=cu.customer_id) select * from ps
User | Count |
---|---|
68 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.