@SANJEEV BANDRUโ You can simply do this
Just change the file path
CREATE TEMPORARY VIEW readcsv USING CSV OPTIONS (
path "dbfs:/docs/test.csv",
header "true",
delimiter "|",
mode "FAILFAST"
);
select
ProjectNo,
collect_list(EmployeeNo) Employees
from
readcsv
group by
projectNo