Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very embarassing - Access query
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01063741
Message ID:
01063774
Views:
9
I didn''t see the reason of JOIN and with second select. Try this:
select Patient_name, Visit_date, MAX(other_field), COUNT(*) AS Cnt from Visits;
       FROM VISITS
       GROUP BY VISITS.patient_name, VISITS.visit_date
       HAVING Cnt>1
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform