Created
June 16, 2015 06:11
-
-
Save jkburges/0295eea3520734a642b6 to your computer and use it in GitHub Desktop.
missing releases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set search_path to 'aatams', 'public'; | |
select transmitter_id, scientific_name from animal_release | |
join project on project_id = project.id | |
join surgery on animal_release.id = surgery.release_id | |
join device tag on surgery.tag_id = tag.id | |
join sensor on tag.id = sensor.tag_id | |
join animal on animal_id = animal.id | |
join species on animal.species_id = species.id | |
where project.name = 'CSIRO: Animal Tagging' | |
and scientific_name in ('Cephaloscyllium laticeps', 'Mustelus antarcticus', 'Platycephalus richardsoni', 'Platycephalus speculator') | |
order by transmitter_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment