Query: SQL Query to identify the Level 0 record of a component.
The below SQL will give all the records of a component along with its corresponding occurs levels: SELECT DISTINCT D . recname TableName , D . occurslevel ScrollName FROM pspnlgrpdefn A , pspnlgroup B , pspnldefn C , pspnlfield D , psrecdefn E WHERE A . pnlgrpname = B . pnlgrpname AND A . market = B . market AND B . pnlname = C . pnlname ...