Revision 48139
Added by Alessia Bardi almost 7 years ago
queryProjectOrganization.sql | ||
---|---|---|
1 |
SELECT po.project as project, |
|
2 |
po.resporganization as resporganization, |
|
3 |
po.participantnumber as participantnumber, |
|
4 |
po.startdate as startdate, |
|
5 |
po.enddate as enddate, |
|
6 |
po.inferred as inferred, |
|
7 |
po.deletedbyinference as deletedbyinference, |
|
8 |
po.trust as trust, |
|
9 |
po.inferenceprovenance as inferenceprovenance, |
|
10 |
|
|
11 |
poc.code || '@@@' || poc.name || '@@@' || pos.code || '@@@' || pos.name as semantics, |
|
12 |
pac.code || '@@@' || pac.name || '@@@' || pas.code || '@@@' || pas.name as provenanceaction |
|
1 |
SELECT |
|
2 |
po.project AS project, |
|
3 |
po.resporganization AS resporganization, |
|
4 |
po.participantnumber AS participantnumber, |
|
5 |
po.startdate AS startdate, |
|
6 |
po.enddate AS enddate, |
|
7 |
po.inferred AS inferred, |
|
8 |
po.deletedbyinference AS deletedbyinference, |
|
9 |
po.trust AS trust, |
|
10 |
po.inferenceprovenance AS inferenceprovenance, |
|
13 | 11 |
|
12 |
poc.code || '@@@' || poc.name || '@@@' || pos.code || '@@@' || pos.name AS semantics, |
|
13 |
pac.code || '@@@' || pac.name || '@@@' || pas.code || '@@@' || pas.name AS provenanceaction |
|
14 |
|
|
14 | 15 |
FROM project_organization po |
15 | 16 |
|
16 |
left outer join projects p on (po.project = p.id)
|
|
17 |
LEFT OUTER JOIN projects p ON (po.project = p.id)
|
|
17 | 18 |
|
18 |
left outer join class pac on (pac.code = p.provenanceactionclass)
|
|
19 |
left outer join scheme pas on (pas.code = p.provenanceactionscheme)
|
|
19 |
LEFT OUTER JOIN class pac ON (pac.code = p.provenanceactionclass)
|
|
20 |
LEFT OUTER JOIN scheme pas ON (pas.code = p.provenanceactionscheme)
|
|
20 | 21 |
|
21 |
left outer join class poc on (poc.code = po.semanticclass) |
|
22 |
left outer join scheme pos on (pos.code = po.semanticscheme) |
|
22 |
LEFT OUTER JOIN class poc ON (poc.code = po.semanticclass) |
|
23 |
LEFT OUTER JOIN scheme pos ON (pos.code = po.semanticscheme) |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40