Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snprc_ehr/resources/queries/study/animalDemographics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SELECT
d.species.arc_species_code as species,
CASE
WHEN h.cage is null THEN h.room
WHEN isnumeric(h.cage) = 1 THEN (h.room || '-' || cast(cast(h.cage as DECIMAL) as varchar) )
WHEN isnumeric(h.cage) THEN (h.room || '-' || cast(cast(h.cage as DECIMAL) as varchar) )
ELSE (h.room || '-' || h.cage)
END AS Location,
h.room as room,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SELECT d2.id,
CASE
WHEN d2.cage is null THEN d2.room
WHEN isnumeric(d2.cage) = 1 THEN (d2.room || '-' || cast(cast(d2.cage as DECIMAL) as varchar) )
WHEN isnumeric(d2.cage) THEN (d2.room || '-' || cast(cast(d2.cage as DECIMAL) as varchar) )
ELSE (d2.room || '-' || d2.cage)
END AS Location,
d2.room.area, d2.room, d2.cage,
Expand Down