3 Replies Latest reply on Dec 6, 2017 8:24 AM by fac586

    Department name should become the heading with extra row in the report

    SMNA

      Hi,

       

      I have the employee table as below,

       

      emp_id      emp_name         department

           1                 ram                marketing

           2                 rohit               marketing

           3                 getha             marketing

           4                 nikil                 sales

           5               gowtham            sales

           6                swathi               IT

       

      So,i should get the report as below,

       

      emp_id           emp_name

      marketing

           1                    ram

           2                    rohit

           3                    getha

      sales

           4                   nikil

           5                  gowtha

          IT

           6                   swathi

        

      I am new to apex,so anyone please suggest me how to do.