The implementation engineer said today that the total score of some items is 0, while that of some items is 5, 10, 10, 0, 19.8. The total score is 44.80.
It's always right to read data from other rows! Record the field name and the ID of the row, and reverse push back to lock a piece of code
Update A set Total = A + B + C + D + E + F;
Sum (datediff (MS, stdate, endate)/count (*) * 20
When this part of SQL statement Is run separately, it finds that the corresponding rows and columns are NULL. Then, it can be replaced with Is NULL (X, 0 ).
It is found that there are many blank enddate values, which leads to problems in all operation steps.
Sum (datediff (MS, stdate, isnull (enddate, getdate ()))
Since null values involved in the operation will cause all failures, I don't understand why do I need to set them like this? If NULL is encountered, why not ignore it?
The key IS that open personnel should use is null (X, 0) to check and judge the workload and company debugging time of the open personnel!
Microsoft is so disgusting!