| From: | Srinivas Iyyer <srini_iyyer_bio(at)yahoo(dot)com> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | SQL Query gone wrong.. please help |
| Date: | 2006-02-09 17:08:47 |
| Message-ID: | 20060209170847.31494.qmail@web34501.mail.mud.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Dear group,
I have three tables:
table: sequence
seq_id | seq_name | seq_refseq
1 | EI24 | NM_004879.3
2 | NDRG2 | NM_201540.1
3 | RARRES2 | NM_002889.2
table: gos
gos_id | go_id | go_term | go_class
11041 | GO:0006807 | nitrogen compound metabolism |P
11049 | GO:0004263 | chymotrypsin activity| F
table : go_seq
gos_id | seq_id
13819 | 11408
13819 | 11950
13819 | 12822
13819 | 11350
I want to query go_seq table, giving seq_name = 'EI24'
select seq_name, go_term
from sequence, gos, go_seq
where go_seq.seq_id = go_seq.gos_id and
sequence.seq_id = sequence.seq_name and
sequence_seq_name = 'EI24';
I am wrong here, unable to get it correctly. Could
you please help here.
thanks
srini
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Murat Tasan | 2006-02-09 17:24:39 | Re: SQL Query gone wrong.. please help |
| Previous Message | André de Camargo Fernandes | 2006-02-08 21:36:40 | How to control memory usage of postgresql |