Interview Usecase Scenario

@sharu_priya,

Follow these steps.

  1. Build Result data table like this using Build Datatable activity
    The image shows a "Build Data Table" activity window from a software application, with a data table that has two columns: "Name" (String) and "Counter" (Int32). (Captioned by AI)

2.Use this LINQ in Assign activity

(From row In dtInput.AsEnumerable() Group row By name = row("Name").ToString() Into Group Select dtResult.Rows.Add(name, Group.Count())).CopyToDataTable

This image shows an assignment operation in UiPath that creates a new DataTable () by grouping rows from  by the "Name" column and counting the occurrences. (Captioned by AI)

Output:
image