Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query Problem
Message
From
18/07/2000 10:39:01
 
 
To
18/07/2000 10:22:41
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00393731
Message ID:
00393805
Views:
16
Hi Mark,

>So, idtraining must be redundant in your result set as it can't have a meaningful value after this query - an arbitrary idtraining will be presented for each course.
>

No, because I'm modifying a generic form which was developed by someone else. The client now wishes to see a list of courses [identified by course name] rather than a list of training records. The id field is used to invoke an edit form [which will contain a list of all training records associated with that course].

Regrettably, I'm unable to alter the structure of the tables to make this a proper one to many relationship.

>If you leave idTraining out of the query, the select distinct should work?
>
>If this still isn't right, you'll have to post a bit of data to help clarify things.

The distinct still won't work, because the other fields in the select statement could differ from each other regardless of the value of the course field.

The id field is still required to call the edit form.

I'm still unclear as to how this can work ok in VFP and SQL Server but not in Oracle.

Best.

Matt.
Previous
Reply
Map
View

Click here to load this message in the networking platform