Articles → SQL SERVER → Views
Views
Purpose
Syntax
Create View <View_Name>
As
<select_statement>
Example
PersonID | PersonName | Address |
---|
1 | Karan | Narwana |
2 | Amandeep | Amritsar |
3 | Harsh | Rohtak |
create view v_person As
select
personID,
PersonName,
Address
from
Person
select
PersonID,
PersonName
from
v_Person
Output
PersonID | PersonName |
---|
1 | Karan |
2 | Amandeep |
3 | Harsh |
Drop A View