I have a DB name called Test in Hive meta store of data bricks. This DB contains around 100 tables. Each table has the column name called sourcesystem and many other columns. Now I need to display the count of records in each table group by source system.
Display the data as bellow.
Tablename, sourceystem, record_count
SQL query for the same for single table:
Select count(*),sourceystem from test.sales GROUP BY sourceystem