I need to compare table based on id with in same sql table and display them as table in UI.
Below the code I am trying
JS code
function compareResul