Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Join Tables based on between clause

Hello, I have this scenario, sql query below: select branch, sum(case when time2.flag = '1' then 1 else 0 end) as summ, (count(distinct(Table1.abc))) as counts from DimTable Table1 join time_dim...