Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add DIPSOSAL and PRESENTATION information to EFALO_SPE #3

Open
roimartins opened this issue Nov 16, 2023 · 1 comment
Open

add DIPSOSAL and PRESENTATION information to EFALO_SPE #3

roimartins opened this issue Nov 16, 2023 · 1 comment

Comments

@roimartins
Copy link
Collaborator

add DIPSOSAL and PRESENTATION information to EFALO_SPE

@roimartins
Copy link
Collaborator Author

select *
from F_ACTIVITY where VOYAGE_ID = '900047388977'

select * from
F_CATCH where ACTIVITY_ID = '21216578'

with a as (

select * from F_ACTIVITY where year ( ACTIVITY_DATE ) > 2009
) , b as (
select * from
F_CATCH where ACTIVITY_ID IN ( SELECT DISTINCT ACTIVITY_ID from a ) and LIVE_WEIGHT = 0 ) --and DISPOSAL_CODE > 1 and and SPECIES_CODE = 'HER'

select * from b
left join D_DISPOSAL c
on c.DISPOSAL_CODE = b.DISPOSAL_CODE

order by DISPOSAL_CODE

code for this issue

with a as (
select * from
F_CATCH where SPECIES_CODE = 'LBE'
and LANDED_WEIGHT != LIVE_WEIGHT
and LIVE_WEIGHT != 0 )

select AVG ( LANDED_WEIGHT / LIVE_WEIGHT ) from a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant