小编She*_*een的帖子

将列的值除以另一列

我想将列的值除以另一列的值,并将结果显示为单独的列

例如:

project name             total-percent        no.of screen
------------            --------------        -------------
pro-1                     150                     5
pro-2                      50                     3

现在我想将总百分比除以no.of屏幕,并将结果显示在另一列中

sql sql-function

2
推荐指数
1
解决办法
5万
查看次数

如何在行删除事件中获取aspxgridview的可见rowindex

任何人都可以帮助我RowIndex在控制RowDeleting事件中获得行的可见性ASPxGridView吗?

asp.net devexpress aspxgridview

2
推荐指数
1
解决办法
1万
查看次数

SQL select命令

在sql我有一个这样的表:


empno   |  empname  |  supervisors
------      -------   -------------
1            AAA          NULL           
2            BBBBB          1            
3            CCCCC          2
4            DDDD           3 

现在我想要像这样的输出


empno   |  empname  |  supervisors
------      -------   -------------
1            AAA          NULL           (he is the boss, he don't have supervisors)
2            BBBBB        AAA            (the number is replaced by empname)
3            CCCCC        BBBBB
4            DDDD         CCCCC 

请帮我!

sql sql-server sql-server-2005

1
推荐指数
1
解决办法
101
查看次数