Examples of custom SQL strings
With a little practice, you can get the Find routine to do just about anything you want it to.
There are a few things to remember:
CollectorName like "Monique Dubrule Reed" and County like "Grimes" and Country like "USA" and State like "TX" and Family like "POACEAE"and NOT:
Select Family, County, Accession, CollectionID, Genus, Species from "C:\Program Files\CSDL\Tracy\Collection\Collection.db" Where CollectorName like "Monique Dubrule Reed" and County like "Grimes" and Country like "USA" and State like "TX" and Family like "POACEAE" Order by Family, County, Accession, CollectionID, Genus, Species
extract (month from begindate)= "5" and County like "Grimes"
To find everything from a county collected over a range of dates from a particular county by a particular collector:
begindate>= "1/1/90" and begindate<= "12/31/97" and County like "Grimes" and CollectorName like "Monique Dubrule Reed"
The Boolean not can be used to exclude certain results and or can be used to combine two searches.
For example, to make the previous search, but exclude collections by Monique Dubrule Reed:
begindate>= "1/1/90" and begindate<= "12/31/97" and County like "Grimes" and CollectorName not like "Monique Dubrule Reed"
To find everything collected in Brazos County in 1992-1994 by Monique Dubrule Reed (or Monique Dubrule or any combination of Monique and her chums), as well as those specimens by that collector from Leon County, regardless of date:
CollectorName like "Monique%" and begindate >="1/1/92" and begindate<="12/31/94" and County like "Brazos" or CollectorName like "Monique%" and County like "Leon"
Other searches can be constructed in exactly the same way.