Skip to content
Advertisement

Percentage of existence in a group in SQL

Hi I have a requirement of finding the occurrence percentage of specific items in a group. My table is like this Team Objective Status ——————————– Team1 Obj1 …

Converting WHILE to CROSS APPLY

I have a scalar function which I am converting to TVF. In the scalar function I have the below while statement: WHILE @ReviewDueDate < getdate() SET @ReviewDueDate = DATEADD(DAY, 30, @…

Advertisement