Created
June 28, 2013 21:47
-
-
Save jmelloy/5888416 to your computer and use it in GitHub Desktop.
This file contains 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 pdbcode, pdbchain, cnt, other_col | |
from pdbcode a, | |
(select pdbcode, count(*) cnt | |
from pdbcode | |
group by pdbcode) b | |
where a.pdbcode = b.pdbcode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SELECT pdbcode, pdbchain, n_chain, uniprotkbac, mc_skip, pisces FROM pdb
JOIN (SELECT pdbcode, count(pdbchain) AS n_chain FROM pdb GROUP BY pdbcode)
USING (pdbcode);