I have a table named 'Customer'.
This table contains a unique Identification field for each customer named 'CustomerNo'. It should be in the format : First an alphabet Starting from A-Z.
Then a four digit number starting from 1-9999 and the next is a three digit number starting from 1-999.This is a unique field.So it shoudn't repeat in the table Customer.
E.g: A1000-100.
Is there any function to generate this format?
Table structure
-----------------------
CustomerID CustomerName CustomerNo
1 John A1000-100
2 Sajan A1001-100