| Stonefield Query SDK |
| Default for Auto-Adding DISTINCT |
However, there may be times when this isn't the correct behavior. For example, if you want to show fields from the Orders table (Order Date, Product Name, and Quantity Ordered) but filter on Company Name is "Sam's Grocery," Stonefield Query eliminates what it thinks are duplicate records, such as two orders for the same product and same quantity on the same day. Clearly, this isn't right -- you'd end up with some missing data. The Include duplicate records setting in the Customize dialog allows you to change that.
In certain types of applications, such as an accounting system, you may want the default behavior to not add the DISTINCT clause under these circumstances (that is, have the Include duplicate records setting default to on) and allow the user to turn that setting off in the Customize dialog for a particular report. The Default for Auto-Adding DISTINCT configuration setting controls that default.
See Also
Configuration Settings
| Last Updated: 02/05/2008 |