Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Case Sensitivity
Message
From
08/08/1997 15:09:43
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
 
To
08/08/1997 14:54:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00043761
Message ID:
00043774
Views:
36
If I understand your question try...

SELECT COUNT(*) as keycount, keyfield FROM table1 GROUP BY upper(keyfield) ORDER BY upper(keyfield) HAVING keycount >1

Also, if you have a large table, make sure that you have and index on upper(keyfield)
Hope this helps //:^)

>no it means Select=SELECT=SELect etc.
>
>Arnon
>
>>
>>Could someone please set me straight. The VFP 5.0a help file states
>>"Neither Visual FoxPro nor BASIC are case-sensitive programming
>languages."
>>Shouldn't that mean that if I do a SELECT * FROM table1 WHERE keyfield =
>>"s422" I would get records where keyfield = "s422" and "S422"? That's not
>>working for me. So...how do I structure an SQL statement so I the
>duplicate
>>records when I do: SELECT keyfield FROM table1 GROUP BY keyfield HAVING
>>COUNT (*)>1?
>>
>>Jeff
>>
>>
L.A.Long
ProgRes
lalong1@charter.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform