SQL Server查询问题
问题描述:
我使用SQL Server 2000中我的表看起来像这样:SQL Server查询问题
stricker nonstricker over status
-----------------------------------------------
sahwag sachin 0.1 out(sahwag)
kohli sachin 0.2 not out
我想要的击球手的名字,像这样:
------------------
sahwag
sachin
kohli
答
我觉得这是什么你要。这将得到表中的strkers和nonstrickers:
select stricker from myTable
union
select nonstricker from myTable
OMG,发生了什么事情! – Homam 2011-04-26 07:13:45
哪些人是击球手?我不完全是一个板球爱好者... – alex 2011-04-26 07:15:34
我不知道如何以2列单列多行结合起来。 – Pramod 2011-04-26 07:18:20