Sql case when not exists. We will apply the CASE statement here.

Sql case when not exists. Check if table exists in SQL Server.