Check out example codes for "t-sql delete view if exists". It will help you in understanding the concepts better.

Code Example 1

if exists(select 1 from sys.views where name='tst' and type='v')
drop view tst;
go

create view tst
as
select * from test

Learn ReactJs, React Native from akashmittal.com