Created
February 22, 2017 19:12
-
-
Save thaylongs/cb77d7673f8a70767468c2bb4f1c42f0 to your computer and use it in GitHub Desktop.
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
| select | |
| ewf.tagexec, | |
| evocount.tree_reference, | |
| evocount.frequency | |
| from | |
| ( | |
| select | |
| ewf.ewkfid, | |
| tree.tree_reference, | |
| tree.frequency | |
| from | |
| ( | |
| select | |
| distinct evo.tree_reference, | |
| evo.frequency | |
| from | |
| sciphytreeminer.oevotreeparser_{metodo1_metodo2} as evo inner join( | |
| select | |
| mevo.tree_reference, | |
| max( mevo.frequency ) as frequency | |
| from | |
| sciphytreeminer.oevotreeparser_{metodo1_metodo2} as mevo | |
| group by | |
| mevo.tree_reference | |
| ) as maxevo on | |
| evo.frequency = maxevo.frequency | |
| ) as tree inner join( | |
| select | |
| distinct evo.ewkfid, | |
| evo.tree_reference | |
| from | |
| sciphytreeminer.oevotreeparser_{metodo1_metodo2} as evo | |
| ) as ewf on | |
| ewf.tree_reference = tree.tree_reference | |
| ) as evocount inner join eworkflow as ewf on | |
| ewf.ewkfid = evocount.ewkfid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment