R
RFJ
I've just developed a database that collects and analyses salaries from
different organisations (about 30 companies - c15 entries per company - 3000
posts).
The data is kept in 2 main tables - orgs (which has company details - eg
sector, turnover, number of staff) and info (which has average salaries paid
by each company for each survey job level). There are /lots/ of queries to
calculate medians, quartiles, weighted averages, etc..
I've now been asked to add a facility where survey information can be
filtered by organisation size and/or organisation turnover. (Pity that was
not specified at the start as this is the problem!)
The information to do this selection /is/ in the tables and I know how to
set up the query to identify whatever records are required - so no problems
there. The problem is that all my existing queries point to the source
tables (Orgs and Info) and if I put in a pre-selection query I guess I then
have to adjust every other query (nearly 100
) to point to the new
query - not the existing tables.
So two questions for SKS's out of there :
1. Is there a quick and dirty method to achieve the outcome (eg setting up a
query to delete the unwanted records in the two tables). If so, how do I
delete in two tables (I know how to do one.)
2. For the longer term, is there a way I can add a preselection query
without then having to go through every other query and report to change
source queries and tables.
different organisations (about 30 companies - c15 entries per company - 3000
posts).
The data is kept in 2 main tables - orgs (which has company details - eg
sector, turnover, number of staff) and info (which has average salaries paid
by each company for each survey job level). There are /lots/ of queries to
calculate medians, quartiles, weighted averages, etc..
I've now been asked to add a facility where survey information can be
filtered by organisation size and/or organisation turnover. (Pity that was
not specified at the start as this is the problem!)
The information to do this selection /is/ in the tables and I know how to
set up the query to identify whatever records are required - so no problems
there. The problem is that all my existing queries point to the source
tables (Orgs and Info) and if I put in a pre-selection query I guess I then
have to adjust every other query (nearly 100

query - not the existing tables.
So two questions for SKS's out of there :
1. Is there a quick and dirty method to achieve the outcome (eg setting up a
query to delete the unwanted records in the two tables). If so, how do I
delete in two tables (I know how to do one.)
2. For the longer term, is there a way I can add a preselection query
without then having to go through every other query and report to change
source queries and tables.