T-SQL 选择不同值的样本记录
在 SQL Server 2008 中,我有表 Theory,其中包含列 Thesis 和 Class。
Thesis Class
<this is sample text> 1
<this is sample text> 2
<this is sample text> 2
<this is sample text> 3
<this is sample text> 3
<this is sample text> 1
<this is sample text> 3
<this is sample text> 1
<this is sample text> 1
<this is sample text> 2
我想编写将返回每个类的两条记录的选择语句。
非常感谢
In SQL server 2008 I have table Theory with columns Thesis and Class.
Thesis Class
<this is sample text> 1
<this is sample text> 2
<this is sample text> 2
<this is sample text> 3
<this is sample text> 3
<this is sample text> 1
<this is sample text> 3
<this is sample text> 1
<this is sample text> 1
<this is sample text> 2
I want to write select statement that will return two records of each class.
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)