not sure I understand how to apply your formula to data. Can you try explaining it with example?
Note: From experience ideas/suggestions/solutions come faster and are more complete with input data (dummy works just fine) and desired output provided including logic behind it if not obvious
Hi @nidhichirania , how many records would each of the select statements return?
Select Column1 from table1 where column2=“a”
select column1 from table1 where column2=“b”
select column1 from table1 where column2=“c”
I’d also re-iterate what @ipazin said “ideas/suggestions/solutions come faster and are more complete with input data (dummy works just fine) and desired output provided including logic behind it if not obvious”