Chado database and SQL queries
0
0
Entering edit mode
5.7 years ago
onemore100iq ▴ 20

How to write SQL query to get polypeptide/protein features from Chado database to show the bifunctional proteins and the fmin, fmax and strand coordinates.

This is what I wrote and did not work:

SELECT f.uniquename, product.value 
FROM feature f 
JOIN cvterm polypeptide ON f.type_id=polypeptide.cvterm_id 
JOIN featureprop product ON f.feature_id=product.feature_id 
JOIN cvterm productprop ON product.type_id=productprop.cvterm_id 
WHERE polypeptide.name = 'polypeptide' 
AND productprop.name = 'gene_product_name';
software error • 984 views
ADD COMMENT

Login before adding your answer.

Traffic: 1813 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6