Can I use SQL to create a table and set an expiration date?

whleeman
New Contributor III

Can I use SQL to create a table and set and expiration date? So that the table will be deleted automatically after the expiration date.

mkm
New Contributor III

Not that I am aware of but you could create a job with a notebook task that runs a drop table <tablename> statement then set it to run on a trigger in the job when you want it to be deleted. 

View solution in original post

prakash1
New Contributor II

Right now it i not possible. You can always create a custom trigger solution with parameter to call notebook and delete the table.