waseem0888
Member
- Local time
- Today, 08:45
- Joined
- Jul 25, 2020
- Messages
- 51
Hi,
I am migrating my Access DB to SQL server and i am very new to SQL server I was calculating one of my field in access with the below expression but I don't know how and where this can be done in SQL my calculated field expression is below.
[Primary_Attribute] & "-" & [Project] & "-" & IIf([Series]<10,"00000",IIf([Series]<100,"0000",IIf([Series]<1000,"000",IIf([Series]<10000,"00","")))) & [Series] & IIf([Revision]<>"00","-" & [Revision],"")
I am migrating my Access DB to SQL server and i am very new to SQL server I was calculating one of my field in access with the below expression but I don't know how and where this can be done in SQL my calculated field expression is below.
[Primary_Attribute] & "-" & [Project] & "-" & IIf([Series]<10,"00000",IIf([Series]<100,"0000",IIf([Series]<1000,"000",IIf([Series]<10000,"00","")))) & [Series] & IIf([Revision]<>"00","-" & [Revision],"")