2326ac
asked on
How to use SQL formula in table design?
I have two fields in my table - firstname and surname - I would like to have a field named whole name and the value of the previous fields I mentioned put into this as a default value.
How can I go about doing this?
How can I go about doing this?
ASKER
I am new to SQL to server can this be done within the table design using the formula field, sorry im used to MS Access
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think You should have split the points
:(
:(
ASKER
Sorry aneeshattingal quite new to this and did not think about that. I will think more carefully next time
That's ok, I think you should read this first
https://www.experts-exchange.com/help.jsp#hi19
https://www.experts-exchange.com/help.jsp#hi18
https://www.experts-exchange.com/help.jsp#hi73
https://www.experts-exchange.com/help.jsp#hi19
https://www.experts-exchange.com/help.jsp#hi18
https://www.experts-exchange.com/help.jsp#hi73
[fname] [varchar] (50) ,
[lname] [varchar] (50) ,
[name] AS (isnull(([fname] + ' '),'') + isnull([lname],''))
) ON [PRIMARY]
GO