Re: Help with XML reports
Hi
I am trying to work out how to write a couple of reports. I would like to know:
a) how many species (or other taxa) within each taxon group there are records for, across the whole dataset;
b) how many species ( "" ) within each taxon group there are records for, at a location;
c) what level these taxa have been recorded at?
E.g. I already know that at the location Hatfield Forest I have records for 3133 taxa, but I want to know that of these 500 are fungi, 200 beetles etc. Also that of the 3133, 2500 are at species level, 400 sub-species, 200 genus, 30 family...
Ideas I have had so far:
for c) it should be possible to amend the Database Statistics - Number of Observations per Species report to link in to the TAXON_RANK table the TAXON LIST KEY table links to it with the TAXON RANK KEY attribute but I am not sure how to write the join - I was thinking of using the Number of Observations per Species v2 report (on the uploads page, which I amended from the original to remove duplication across lists) but was wondering if there might be a problem if a sub-species on one list equated to a species on another;
for a) it might work again with amending Database Statistics - Number of Observations per Species, linking to TAXON_GROUP but I can't work out the link;
for b) it could involve integrating the solution for b) into the Site Reports - Location Summary Report V06-12.
However this has all made my head hurt. I would be very grateful if anyone could let me know if I am heading in the right direction, and supply any further pointers.
Thanks
Gordon
Biological Survey Data Manager
National Trust