I need to generate a output to show different remarks(from table2) for an id(from table 1), but the remark is not mandatory to be present in the table 2.
Tried Case function but it is bringing NULL values also as an extra line
Table: Employee id
ID Name
100021 Bob
100023 Tom
100024 Jim
Table: Employee Remarks
ID remark remark text
100021 job manager
100021 salary 5000
100021 dept classic
100023 job CSR
100023 salary 4000
100024 dept customer
Required Result
ID Name Job Salary Dept
100021 Bob manager 5000 classic
100023 Tom CSR 4000 NA
100024 Jim NA NA customer