Check out example codes for "sql drop table if exists". It will help you in understanding the concepts better.
Code Example 1
DROP TABLE IF EXISTS dbo.Customers
Code Example 2
IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL DROP TABLE dbo.Scores;
Code Example 3
IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL DROP TABLE dbo.Scores;
Code Example 4
IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL
DROP TABLE dbo.Scores;
Learn ReactJs, React Native from akashmittal.com