Zydeceltico
Registered User.
- Local time
- Today, 01:49
- Joined
- Dec 5, 2017
- Messages
- 843
Hi All -
I am designing a db for the manufacturing plant where I work in QC.
I'm trying to make a decision about how to store/record our job numbers.
A typical job number looks like this: A591005001
Here's the thing there are actually 3 pieces of information contained in that string.
It is broken up as follows: A5910 | 050 | 01.
"A5910" is the actual project/job identifying number.
"050" is what we call the "Task." Large jobs are managed through smaller tasks which are usually driven by customers scheduling. There are usually multiple tasks associated with a given job number. So job A5910 might have A591005001, A591006001, A591006003, etc. But they are all the same project.
"01" is the resource. There can be multiple resources under a given Task. In other words, the "01" could also be "02" through "99".
Typically though there are only a few resources allotted to a given task.
AND.....in the QC department we are rarely concerned about the resource. There is almost always more of a focus on the task.
In any regard, I want to record the entire number and have been breaking it up by Job, Task, Resource as fields in tblJobNumber but I think this is inefficient.
The reason I have been doing this is that I want to be able to query the entire job at some point. I'm thinking though that it will be a better design to record the entire 10 character string in a single field as that number is used repeatedly throughout multiple process inspections and the db would be better served by recording an ID rather than the entire number every time it is recorded.
And though I know it is possible to parse the first 5 characters (e.g., "A5910") and use this string in a query - I don't know how to do it.
So - - - In general how would I approach a query where I wanted to find all records for A5910 to include all tasks and resources assuming the following tables and ID fields:
tblJobTaskResource (PK = JTR_PK, autonumber & a field called JobTaskResource which contains the 10 character string)
tblInspections (FK = JTR_FK, number)
Thank You!
Tim
I am designing a db for the manufacturing plant where I work in QC.
I'm trying to make a decision about how to store/record our job numbers.
A typical job number looks like this: A591005001
Here's the thing there are actually 3 pieces of information contained in that string.
It is broken up as follows: A5910 | 050 | 01.
"A5910" is the actual project/job identifying number.
"050" is what we call the "Task." Large jobs are managed through smaller tasks which are usually driven by customers scheduling. There are usually multiple tasks associated with a given job number. So job A5910 might have A591005001, A591006001, A591006003, etc. But they are all the same project.
"01" is the resource. There can be multiple resources under a given Task. In other words, the "01" could also be "02" through "99".
Typically though there are only a few resources allotted to a given task.
AND.....in the QC department we are rarely concerned about the resource. There is almost always more of a focus on the task.
In any regard, I want to record the entire number and have been breaking it up by Job, Task, Resource as fields in tblJobNumber but I think this is inefficient.
The reason I have been doing this is that I want to be able to query the entire job at some point. I'm thinking though that it will be a better design to record the entire 10 character string in a single field as that number is used repeatedly throughout multiple process inspections and the db would be better served by recording an ID rather than the entire number every time it is recorded.
And though I know it is possible to parse the first 5 characters (e.g., "A5910") and use this string in a query - I don't know how to do it.
So - - - In general how would I approach a query where I wanted to find all records for A5910 to include all tasks and resources assuming the following tables and ID fields:
tblJobTaskResource (PK = JTR_PK, autonumber & a field called JobTaskResource which contains the 10 character string)
tblInspections (FK = JTR_FK, number)
Thank You!
Tim