Question : Creating a SQL view

Dear Experts

I need to create a sql view from data I have in a table called property.  The problem I am having is that I need to include some additional colums which are not in the property table and specify a value for them.

For example:

(Property Table)
PropertyAddress1
PropertyAddress2
CityTown
Postcode


View
Branch  (need to specify a value of 99XX99)
PropertyAddress1
PropertyAddress2
CityTown
Postcode


I wondered if anyone could advise on the SQL syntax as to how I can include the 'Branch' column with the value of '99XX99'


Many thanks for any help with this

Grant
 

Answer : Creating a SQL view

Create View dbo.MyView
AS
Select '99XX99' as Branch, PropertyAddres1 /*etc*/
from [Property]
Random Solutions  
 
programming4us programming4us