由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - A SQL question
相关主题
Help- A simple question about SQLRe: A question for SQL Server
sql question?你们喜欢用哪个SQL Tools?
Help! How to deal with SYNONYME in MySQLRe: 数据库真烦人
Re: Use Access Link table to h use SQL server tables.[转载] 申请Database版版主
请问T-SQL中Group By之后怎么找到特定的recordSQL server 和SQL anywhere的区别是什么?
help on store procedure of db2Questions on SQL
Re: [转载] JDBC用完了oracle的large pool (memorPB SQL语句的简单问题
Replace SAN disk for SQL Server database server能从C++中执行一个SQL文件么?比如createtable.sql
相关话题的讨论汇总
话题: clone话题: sql话题: each话题: genes话题: ids
进入Database版参与讨论
1 (共1页)
a********y
发帖数: 1
1
There is a table with gene_ids (‘gid’) and clone_ids (‘cid’). Each
gene only resides on a single clone and each clone may contain multiple
genes. How do you find how many genes are on each and every clone? Thanks!!
1
w*******e
发帖数: 1622
2
Use COUNT

!!

【在 a********y 的大作中提到】
: There is a table with gene_ids (‘gid’) and clone_ids (‘cid’). Each
: gene only resides on a single clone and each clone may contain multiple
: genes. How do you find how many genes are on each and every clone? Thanks!!
: 1

c*****d
发帖数: 6045
3
select count(gid) from table
group by cid

!!

【在 a********y 的大作中提到】
: There is a table with gene_ids (‘gid’) and clone_ids (‘cid’). Each
: gene only resides on a single clone and each clone may contain multiple
: genes. How do you find how many genes are on each and every clone? Thanks!!
: 1

1 (共1页)
进入Database版参与讨论
相关主题
能从C++中执行一个SQL文件么?比如createtable.sql请问T-SQL中Group By之后怎么找到特定的record
初级问题help on store procedure of db2
oracle和XMLRe: [转载] JDBC用完了oracle的large pool (memor
[转载] LDAP + SQLReplace SAN disk for SQL Server database server
Help- A simple question about SQLRe: A question for SQL Server
sql question?你们喜欢用哪个SQL Tools?
Help! How to deal with SYNONYME in MySQLRe: 数据库真烦人
Re: Use Access Link table to h use SQL server tables.[转载] 申请Database版版主
相关话题的讨论汇总
话题: clone话题: sql话题: each话题: genes话题: ids