create view view_officeinfo--(视图名称)
as (select A.Name as 楼盘名称,B.A_Name as 城市,C.A_Name as 区域,D.A_Name as 街道 from dbo.Office_Info as A
inner join dbo.Base_Area as B on A.CityId=B.A_ID
inner join dbo.Base_Area as C on A.AreaId=C.A_ID
inner join dbo.Base_Area as D on A.StreetId=D.A_ID)--(sql语句)
select * from view_officeinfo(视图名称)
if exists(select * from sys.objects where name='view_officeinfo')
drop view_officeinfo