fpSQL, Group By, and case sensitivity?

Richard Veith Richard.Veith at SMRresearch.com
Wed Jan 28 08:14:12 PST 2015


I am trying to use fpSQL against a FilePro database file to get various
group totals, using COUNT and GROUP BY.   But there seems to be some
interaction between the use of GROUP BY and case sensitivity.   As a simple
example, here is part of the resulting list when I query for records in
Washington state (the query is "select @5, count(*) from myDB where @5 =
'WA' group by @5"  -- and field 5 is the two-character state code):

 

WA           6

Wa           1

WA          11

Wa           2

WA           9

  etc., etc.

 

Every time it encounters a lower case letter in the state field, it starts a
new group, and then starts yet another new group when it hits the next
record without any lower case letters.   And then it is unable to group ALL
the upper case fields together, and ALL the lower case fields together.   I
know that in this simple example, I can omit the GROUP BY, and fpSQL will
indeed return the correct case-insensitive total, i.e., a single total for
all of Washington state.   However, usually I am not looking for only one
group, but all the many groupings within a given field, so the GROUP BY is
needed to form the various groups.

 

Any ideas?  Does fpSQL have any settings with respect to case sensitivity?

 

Thanks,

Rich

    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20150128/cb8fa11e/attachment.html>


More information about the Filepro-list mailing list