Excel Sheet data
Eno EName Pincode
1 aaa 123456
2 bbb 123423
3 ccc 34
4 ddd 567
5 eee 4532
Table Structure
Eno Varchar(10)
EName vachar(25)
Pincode Nvarchar(6)
I fetch data from excel sheet on the time pincode have 3 or 2 or 6 or 4, I have to check that If pincode column values is less than 6 i have concat 0.
Eg: Pincode 34 it have only 2 digit so i add 4 zero in front 000034.
Result
EmpInfo
Eno EName PinCode
1 aaa 123456
2 bbb 123423
3 ccc 000034
4 ddd 000567
5 eee 004532
You can add 1000000 to the
PinCodevalue and fetch the 6 rightmost letters.