This forum has been so helpful last time, thought I would give it another try!
Have gotten to the point where I can't see the forest for the trees as I have the feeling the solution is quite simple!
I have a table with the following columns: job, name of the workmen, days of the week, rate, adj, total and comments.
To give an idea of how, a part of, the table looks like, please see below:
Now I am trying to delete the following records:
Basically when there are no names under a project, it means no one has worked there and we don't need to see them.
The code I have at the moment is:
(I use this code to select the required records and then turn it into a delete query).
However, this just returns only ONE column with ALL distinct values (e.g. 11, 12, 13, 14, 15)
I would like to keep the fields when their value appears more than once basically (PLUS the other columns weekdays, rate, adj, etc.). I hope this makes sense!!
If anyone has any suggestions that would be greatly appreciated!
Many thanks,
emperial
Have gotten to the point where I can't see the forest for the trees as I have the feeling the solution is quite simple!
I have a table with the following columns: job, name of the workmen, days of the week, rate, adj, total and comments.
To give an idea of how, a part of, the table looks like, please see below:
Code:
Job Workman 11 11 - PROJECT NAME 11 Workman 1 11 Workman 2 11 Workman 3 12 12 - PROJECT NAME 13 13 - PROJECT NAME 13 Workman 4 14 14 - PROJECT NAME 14 Workman 5 14 Workman 6 14 Workman 7 15 15 - PROJECT NAME
Code:
12 12 - PROJECT NAME 15 15 - PROJECT NAME
The code I have at the moment is:
Code:
SELECT DISTINCT [CISPAYE].Job FROM [CISPAYE] GROUP BY Job
However, this just returns only ONE column with ALL distinct values (e.g. 11, 12, 13, 14, 15)
I would like to keep the fields when their value appears more than once basically (PLUS the other columns weekdays, rate, adj, etc.). I hope this makes sense!!
If anyone has any suggestions that would be greatly appreciated!
Many thanks,
emperial
Comment