Skip to content
Merged
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
6 changes: 4 additions & 2 deletions sla/resources/queries/sla/allowableSLA.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
--Changed by Kolli - 4/20/22
--Added Linked schema template references
--Removed linked schema 5/24/2022
SELECT a.protocol,
c.protocol_id as eIACUC_protocol_name,
a.species,
Expand All @@ -9,10 +10,11 @@ SELECT a.protocol,
a.allowed,
a.startdate,
a.enddate
FROM ehrSLA.allowableAnimals a,
onprc_ehrSLA.eIACUC_PRIME_VIEW_PROTOCOLS c
FROM sla.allowableAnimals a,
onprc_ehr.eIACUC_PRIME_VIEW_PROTOCOLS c
Where c.Protocol_State = 'Approved'
And (c.protocol_Id = a.protocol.displayname OR c.protocol_Id like '%' + a.protocol.displayname)
-- And (c.protocol_Id = a.protocol OR c.protocol_Id like '%' + a.protocol)
And curdate() between a.startdate And a.endDate

-- --Created ny kollil on 10/18/21 to dispaly the allowable SLAs with eIACUCNum but no breeding info.
Expand Down