Hi All,
I need to purge work tables which were created a month before. I am using the below query to extract the list of all such tables:
SELECT DISTINCT 'DROP TABLE DB1.' || B.TABLENAME || ' ;'
FROM dbc.tables WHERE tablekind = 'T' AND databasename = 'DB1'
AND TRIM(tablename) LIKE any
↧