Les Isaacs
Registered User.
- Local time
- Today, 01:07
- Joined
- May 6, 2008
- Messages
- 186
Hi All
I have a table [tblStaff] with a numerical key 'staffID' and a text field 'staffName', and I have a table [tblSickness] with that joins to [tblStaff] on 'staffID'. There are a lot of reports, and functions, that use the data in [tblStaff] and the related data in [tblSickness]. Would it give performance improvements if I either:
1. created a field 'staffName' in [tblSickness], so the reports etc would only then need to be based on the single table [tblSickness]; or
2. created a function to return the 'staffName' for a given 'staffID', and then used this function for the relevant reports (and so again they would only then need to be based on the single table [tblSickness]?
I know I could 'try it and see', but would be interested in the experience of others who have experimented along these lines.
Thanks for an help.
Les
I have a table [tblStaff] with a numerical key 'staffID' and a text field 'staffName', and I have a table [tblSickness] with that joins to [tblStaff] on 'staffID'. There are a lot of reports, and functions, that use the data in [tblStaff] and the related data in [tblSickness]. Would it give performance improvements if I either:
1. created a field 'staffName' in [tblSickness], so the reports etc would only then need to be based on the single table [tblSickness]; or
2. created a function to return the 'staffName' for a given 'staffID', and then used this function for the relevant reports (and so again they would only then need to be based on the single table [tblSickness]?
I know I could 'try it and see', but would be interested in the experience of others who have experimented along these lines.
Thanks for an help.
Les