Viewing 4 posts - 1 through 4 (of 4 total)
when I try your hardcoded logic I get 0 for X and 100 for y
select 25/40 *100
select 100 - ((25/40)*100)
Based on your logic same...
May 5, 2022 at 5:41 pm
select *
from (
Select SubmissionGuid,QuoteStatus
,RowNum =...
April 26, 2022 at 9:02 pm
select t.DC, substring(t.DC,1,charindex(' ',t.DC)) FROM t
this will remove anything after the space
t.DC modifiedt.DC
April 7, 2022 at 10:26 pm
CASE WHEN DueDate = CAST (GETDATE() AS DATE) THEN DATEADD(dd,-1, DueDate ) else DueDate end
so here we are saying if Due date = today(Max date) then you subtract a day...
April 7, 2022 at 10:13 pm
Viewing 4 posts - 1 through 4 (of 4 total)