I want to get the list of all tables from synapse lake data base ( this database created after creating the synapse link with data verse - fetching data from D365 FnO tables). I am getting all the tables with no. of columns but I am having hard time to get no. of rows in next column after column count. Again I am running this in LAKE database in Synapse workspace.

create a temporary table name #tt
create a cursor names tcursor as shown below, which will get number of rows of each table and insert into #tt
now execute next statement to get desired output