hangglide
Hangglider
- Local time
- Today, 07:51
- Joined
- May 9, 2001
- Messages
- 35
Is it possible to count two groups at once in the same query? For example I would like to know the number of species and a count of species from the following simplified version of my database:
sample (sampleID, lots_of_sample_information)
fish (fishID, sampleID, species, information_specific_to_this_fish)
I would like a query with this information
query(sampleID, Count_of_Species, Count_of_Individuals_in_Sample)
Or in english, sample 1 has 5 species and 38 individuals.
In my query I can group by species and get a total number of species for each sample.
OR
I can group by sample and count the total number of fish per sample.
Is it possible to do both in the same query?
Leo
sample (sampleID, lots_of_sample_information)
fish (fishID, sampleID, species, information_specific_to_this_fish)
I would like a query with this information
query(sampleID, Count_of_Species, Count_of_Individuals_in_Sample)
Or in english, sample 1 has 5 species and 38 individuals.
In my query I can group by species and get a total number of species for each sample.
OR
I can group by sample and count the total number of fish per sample.
Is it possible to do both in the same query?
Leo