Defination Of Sql View:
===========================================================================
A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database. You can add SQL functions, WHERE, and JOIN statements to a view and present the data as if the data were coming from one single table.
===========================================================================
example for create views
===========================================================================
CREATE view [dbo].[GetDATAforTimetable_Excel]
as
select t.TT_ID, staff.Person_Name,std.Std_Name,c.Course_Name,sub.Sub_Name,t.Batch_Year,
t.Start_Time,t.End_Time,t.Date,staff.Staff_ID,b.Branch_Id
from Tbl_TimeTable t,Tbl_Subject sub,Tbl_Course c,Tbl_Stad std,Tbl_Staff staff,Tbl_Branch b
where t.Course_ID=c.Course_ID and sub.Sub_ID=t.Sub_ID and std.Std_ID=t.Std_ID and
staff.Staff_ID=t.Staff_ID and staff.Branch_Id=b.Branch_Id
GO
===========================================================================
this view also use in storeprocedre Creating by their Object,Alias