Please Help me Please Help me Mohammedkhamees (Programmer) (OP) 29 Apr 07 08:39 I want to make a column in a certain table ,this column consists of 3 chars an 6 autoincrement numbers like "abc-123456" .Furthermore this column is a primary keyhow can i do this?thanks Mohammed Sobhi RE: Please Help me Olaf Doschke (Programmer) 29 Apr 07 09:37 depends very much on the database you use. Most support an autoincrementing integer field, so I would not try to have this value in one field, instead have two seperate fields and use a view to combine these two fields.Bye, Olaf. RE: Please Help me lespaul (Programmer) 30 Apr 07 09:35 however, if you need the number to be sequential or if you need to assign some "meaning" to the number, you shouldn't use an autoincrementing.Search the forum for the database you're using and post in that specific forum.HTH LeslieAnything worth doing is a lot more difficult than it's worth - Unknown InduhvidualEssential reading for database developers: The Fundamentals of Relational Database DesignUnderstanding SQL Joins RE: Please Help me johnherman (MIS) 30 Apr 07 10:11 I would create a generic primary key, just an autosequence. Then I would create two additional columns. One with the 3 character fields and another with the autoincrementing sequential number. Then make an index on the combined (concatenated) columns and place a unique constraint on it. -------------------------The trouble with doing something right the first time is that nobody appreciates how difficult it was - Steven Wright RE: Please Help me harebrain (MIS) 1 May 07 23:28 I like those ideas, John: a synthetic primary key AND a composite alternate key. Particularly because the requirements for the char+serial business are unknown, and might not be uncovered until after the thing is implemented.