I am designing a laboratory database. Several products, samples, etc are identified by a composite number with multiple parts which indicate different values such as: origin, date, type, id today, etc. Examples of composite numbers might include a driver's license number (X44-555-3434), lot number (XBR-A26-500-2).
How should composite numbers be stored in a database? Should they be stored as a string or should each component of the composite number be stored (or derived) separately?
NOTE: Use Oracle if the question cannot be answered generally.