查询中的SQL逻辑

时间:2015-05-22 16:51:03

标签: sql sql-server sql-server-2008

我正在尝试在sql查询中实现一些逻辑来创建类似于:

的表
Count   Name
1         a
1         a
1         a
2         b
2         b
3         c
4         d
4         d
5         e
5         e
5         e
5         e

正如您所看到的,逻辑是一个新的计数从每个名称更改开始,但这个计数仍然好像名称没有更改。

1 个答案:

答案 0 :(得分:1)

您需要import time # suppose you have fig1, fi2, fig 3 etc. while(True): time.sleep(10) plt.close(fig1) # import the next plot time.sleep(10) plt.close(fig2) # import the next plot time.sleep(10) plt.close(fig3)

DENSE_RANK()
相关问题