This code was kindly provided me. It solves my problem:
select s.seq_name,
(select cat_name
from categories join seq_cats using (cat_id)
where cat_type_id = 3
and seq_cats.seq_id = s.seq_id) as tissue,
(select cat_name
from categories...
Hi,
I have 3 tables: sequence, seq_cats and categories.
sequence has 2 fields of interest:
seq_id (int(10) not null auto_increment primary key)
seq_name (varchar(40) not null)
categories has 3 fields of interest:
cat_id (int(10) not null auto_increment primary key)
cat_name (varchar(20) not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.