1 |
373
|
aaronmk
|
SELECT '# projects' AS ___;
|
2 |
371
|
aaronmk
|
SELECT count(*) AS count FROM project;
|
3 |
368
|
aaronmk
|
|
4 |
374
|
aaronmk
|
SELECT 'projects' AS ___;
|
5 |
|
|
SELECT projectname AS project FROM project ORDER BY project;
|
6 |
371
|
aaronmk
|
|
7 |
616
|
aaronmk
|
SELECT E'each project\'s # locations' AS ___;
|
8 |
|
|
SELECT projectname AS project, count(*) AS locations_count
|
9 |
371
|
aaronmk
|
FROM project
|
10 |
616
|
aaronmk
|
JOIN locationevent USING (project_id)
|
11 |
371
|
aaronmk
|
GROUP BY project
|
12 |
|
|
ORDER BY project
|
13 |
|
|
;
|
14 |
374
|
aaronmk
|
|
15 |
616
|
aaronmk
|
SELECT '# locations' AS ___;
|
16 |
|
|
SELECT count(*) AS count FROM location;
|
17 |
376
|
aaronmk
|
|
18 |
616
|
aaronmk
|
SELECT '# location observations' AS ___;
|
19 |
|
|
SELECT count(*) AS count FROM locationevent;
|
20 |
377
|
aaronmk
|
|
21 |
|
|
SELECT '1st methods' AS ___;
|
22 |
|
|
SELECT DISTINCT
|
23 |
|
|
projectname AS project
|
24 |
|
|
, stemSampleMethod AS method -- placeholder until we have a method field
|
25 |
|
|
FROM project
|
26 |
616
|
aaronmk
|
JOIN locationevent USING (project_id)
|
27 |
377
|
aaronmk
|
ORDER BY project, method
|
28 |
|
|
LIMIT 10;
|
29 |
|
|
|
30 |
|
|
SELECT '1st method narratives' AS ___;
|
31 |
|
|
SELECT DISTINCT
|
32 |
|
|
projectname AS project
|
33 |
|
|
, methodNarrative AS method_narrative
|
34 |
|
|
FROM project
|
35 |
616
|
aaronmk
|
JOIN locationevent USING (project_id)
|
36 |
377
|
aaronmk
|
ORDER BY project, method_narrative
|
37 |
|
|
LIMIT 10;
|