Hi everyone!
I'm running into a little problem and was wondering if some of you could suggest a good way to accomplish this.
Here is what I'm doing:
I have a database that supports multiple "Systems" that can each create their own reports.
(Think asp.net membership system) "many application in one database"
"System table" one to many "Reports table"
In my reports table I have an auto-number ID field. The problem is I would like to have an auto-number for each system, not all of them and still keep the auto-number ID as the primary key. So right now it works like this
Report
System ID
System One 1
System One 2
System Two 3
System One 4
System Two 5
System One 6
but I would like it like this:
Report
System ReportID ID
System One SO001 1
System One SO002 2
System Two ST001 3
System One SO003 4
System Two ST002 5
System One SO004 6
how do some of you handle report numbers for multiple systems in one database so you get a nice sequential, logical report number?
Thanks!