I have table in SQL:
public.employee
name | age |
---|---|
abc | 20 |
xyz | 30 |
I want a query which would return the column values along with schema name and table name.
Input:
select * from public.employee
Output:
name | age | schema_name | table_name |
---|
The reason for doing this is, I want to have an aggregate info table which has count for each schema and table.