You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcc/resources/queries/mcc/aggregatedDemographics.sql
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ SELECT
7
7
d.birth,
8
8
d.death,
9
9
d.colony,
10
+
d.source,
10
11
d.damMccAlias.externalAlias as dam,
11
12
d.sireMccAlias.externalAlias as sire,
12
13
d.damas originalDam,
@@ -18,6 +19,7 @@ SELECT
18
19
WHEN d.calculated_status='Alive'AND (SELECTCOUNT(f.flag.value) as total FROM"/data/Colonies/SNPRC/".study.flags f WHEREf.Id=d.IdANDf.isActive= true) >0 THEN true
19
20
ELSE false
20
21
END as u24_status,
22
+
d.Id.mostRecentDeparture.mostRecentDeparture,
21
23
o.availability,
22
24
o.current_housing_status,
23
25
o.infant_history,
@@ -50,6 +52,7 @@ SELECT
50
52
d.birth,
51
53
d.death,
52
54
d.colony,
55
+
d.source,
53
56
d.damMccAlias.externalAlias as dam,
54
57
d.sireMccAlias.externalAlias as sire,
55
58
d.damas originalDam,
@@ -61,6 +64,7 @@ SELECT
61
64
WHEN d.calculated_status='Alive'AND (SELECTCOUNT(f.flag.value) as total FROM"/data/Colonies/WNPRC/".study.flags f WHEREf.Id=d.IdANDf.isActive= true) >0 THEN true
0 commit comments