Hi,
I've been asked to create a couple queries for my db.
I have a code table, and then a data table with a code_ID (FK) to the code table.
The first query would to see how many codes have only been used once.
Then another query that pulls codes that have been used twice.
Then another query that will only pull codes that have been used 3 times.
I can't think of the logic needed to make these?
I'm thinking there is some SQL I can used in my code_ID field, but not sure what it would be.
Or could this be done easier in a report?
Thanks
I've been asked to create a couple queries for my db.
I have a code table, and then a data table with a code_ID (FK) to the code table.
The first query would to see how many codes have only been used once.
Then another query that pulls codes that have been used twice.
Then another query that will only pull codes that have been used 3 times.
I can't think of the logic needed to make these?
I'm thinking there is some SQL I can used in my code_ID field, but not sure what it would be.
Or could this be done easier in a report?
Thanks