Skip to content

Instantly share code, notes, and snippets.

@jkburges
Created June 16, 2015 06:11
Show Gist options
  • Save jkburges/0295eea3520734a642b6 to your computer and use it in GitHub Desktop.
Save jkburges/0295eea3520734a642b6 to your computer and use it in GitHub Desktop.
missing releases
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