SQL Syntax for NOT IN and EXCEPT -


i have database of genes different samples , sql commands retrieve: 1) genes uniquely obtained 1 sample 2) genes observed in both samples.

the database structure such geneids integers (incremental), simple reason samples may have reoccurring gene names.

i have tried not in , except getting incorrect results. want avoid writing java code achieve this.

thanks.

the following return how many times each genename appears

select genename, count(*) genes group genename; 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -